@hivegpt/hiveai-angular 0.0.135 → 0.0.137

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1468,12 +1468,24 @@
1468
1468
  return "https://www.google.com/s2/favicons?sz=128&domain=" + domain;
1469
1469
  };
1470
1470
  ChatDrawerComponent.prototype.onCardClick = function () {
1471
- this.toggleDrawer(false);
1472
1471
  this.sourcesDrawer.open();
1472
+ var button = document.getElementById('botcloseplaygroundbutton');
1473
+ if (button) {
1474
+ button.style.display = 'none';
1475
+ }
1473
1476
  };
1474
1477
  ChatDrawerComponent.prototype.onCloseSource = function () {
1478
+ var _this = this;
1475
1479
  this.sourcesDrawer.close();
1476
- this.toggleDrawer(true);
1480
+ this.isDrawerOpen = false;
1481
+ setTimeout(function () {
1482
+ _this.isDrawerOpen = true;
1483
+ _this.cdr.detectChanges();
1484
+ var button = document.getElementById('botcloseplaygroundbutton');
1485
+ if (button) {
1486
+ button.style.display = 'block';
1487
+ }
1488
+ }, 200);
1477
1489
  };
1478
1490
  ChatDrawerComponent.prototype.toggleDrawer = function (todo) {
1479
1491
  this.isDrawerOpen = todo;