@hivegpt/hiveai-angular 0.0.139 → 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,18 +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
1480
  this.cdr.detectChanges(); // Trigger change detection if needed
1482
- setTimeout(function () {
1483
- _this.isDrawerOpen = true;
1484
- _this.cdr.detectChanges();
1485
- var button = document.getElementById('botcloseplaygroundbutton');
1486
- if (button) {
1487
- button.style.display = 'block';
1488
- }
1489
- }, 400);
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
+ }
1490
1490
  };
1491
1491
  ChatDrawerComponent.prototype.toggleDrawer = function (todo) {
1492
1492
  this.isDrawerOpen = todo;