@hivegpt/hiveai-angular 0.0.138 → 0.0.140

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.
@@ -1475,17 +1475,18 @@
1475
1475
  }
1476
1476
  };
1477
1477
  ChatDrawerComponent.prototype.onCloseSource = function () {
1478
- var _this = this;
1479
1478
  this.sourcesDrawer.close();
1480
1479
  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
- }, 400);
1480
+ this.cdr.detectChanges(); // Trigger change detection if needed
1481
+ this.onDrawerClosed();
1482
+ };
1483
+ ChatDrawerComponent.prototype.onDrawerClosed = function () {
1484
+ this.isDrawerOpen = true;
1485
+ // Use ngClass to dynamically apply the class
1486
+ var button = document.getElementById('botcloseplaygroundbutton');
1487
+ if (button) {
1488
+ button.style.display = 'block';
1489
+ }
1489
1490
  };
1490
1491
  ChatDrawerComponent.prototype.toggleDrawer = function (todo) {
1491
1492
  this.isDrawerOpen = todo;