@hivegpt/hiveai-angular 0.0.300 → 0.0.301

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.
@@ -818,7 +818,6 @@
818
818
  // }
819
819
  }
820
820
  ChatDrawerComponent.prototype.ngOnChanges = function (changes) {
821
- var _this = this;
822
821
  if (changes.s27Token) {
823
822
  if (changes.s27Token.currentValue != changes.s27Token.previousValue) {
824
823
  this.s27Token = changes.s27Token.currentValue;
@@ -839,11 +838,6 @@
839
838
  if (changes.orgId.currentValue != changes.orgId.previousValue &&
840
839
  changes.orgId.currentValue) {
841
840
  this.initializeSocket();
842
- if (!this.checkForCop29BotId()) {
843
- this.botService.getWorkflowsByOrgId(this.orgId).subscribe(function (res) {
844
- _this.orgWorkflows = res;
845
- });
846
- }
847
841
  }
848
842
  }
849
843
  };
@@ -865,8 +859,8 @@
865
859
  }, function (err) {
866
860
  console.error('Error fetching chat history:', err);
867
861
  });
868
- this.fetchAgents();
869
- this.fetchEditorContent();
862
+ // this.fetchAgents();
863
+ // this.fetchEditorContent();
870
864
  this.cdr.markForCheck();
871
865
  // this.initializeSocket();
872
866
  if (!this.checkForCop29BotId()) {
@@ -1764,7 +1758,9 @@
1764
1758
  };
1765
1759
  // Toggle the dropdown visibility
1766
1760
  ChatDrawerComponent.prototype.toggleDropdown = function () {
1761
+ this.fetchAgents();
1767
1762
  this.isDropdownOpen = !this.isDropdownOpen;
1763
+ this.cdr.detectChanges();
1768
1764
  };
1769
1765
  ChatDrawerComponent.prototype.onSelectAll = function (event) {
1770
1766
  var _a;
@@ -2028,13 +2024,19 @@
2028
2024
  }
2029
2025
  };
2030
2026
  ChatDrawerComponent.prototype.toggleWorkflows = function (value) {
2027
+ var _this = this;
2031
2028
  if (value === void 0) { value = null; }
2032
- this.isWorkflowOpen = value == null ? !this.isWorkflowOpen : value;
2033
- if (!this.isWorkflowOpen) {
2034
- this.selectedWorkflow = null;
2035
- this.openWorkflowInput = false;
2029
+ if (!this.checkForCop29BotId()) {
2030
+ this.botService.getWorkflowsByOrgId(this.orgId).subscribe(function (res) {
2031
+ _this.orgWorkflows = res;
2032
+ _this.isWorkflowOpen = value == null ? !_this.isWorkflowOpen : value;
2033
+ if (!_this.isWorkflowOpen) {
2034
+ _this.selectedWorkflow = null;
2035
+ _this.openWorkflowInput = false;
2036
+ }
2037
+ _this.cdr.detectChanges();
2038
+ });
2036
2039
  }
2037
- this.cdr.detectChanges();
2038
2040
  };
2039
2041
  ChatDrawerComponent.prototype.initializeForm = function () {
2040
2042
  var _a, _b;