@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.
- package/bundles/hivegpt-hiveai-angular.umd.js +15 -13
- package/bundles/hivegpt-hiveai-angular.umd.js.map +1 -1
- package/bundles/hivegpt-hiveai-angular.umd.min.js +1 -1
- package/bundles/hivegpt-hiveai-angular.umd.min.js.map +1 -1
- package/esm2015/lib/components/chat-drawer/chat-drawer.component.js +15 -13
- package/fesm2015/hivegpt-hiveai-angular.js +14 -12
- package/fesm2015/hivegpt-hiveai-angular.js.map +1 -1
- package/lib/components/chat-drawer/chat-drawer.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -372,11 +372,6 @@ class ChatDrawerComponent {
|
|
|
372
372
|
if (changes.orgId.currentValue != changes.orgId.previousValue &&
|
|
373
373
|
changes.orgId.currentValue) {
|
|
374
374
|
this.initializeSocket();
|
|
375
|
-
if (!this.checkForCop29BotId()) {
|
|
376
|
-
this.botService.getWorkflowsByOrgId(this.orgId).subscribe((res) => {
|
|
377
|
-
this.orgWorkflows = res;
|
|
378
|
-
});
|
|
379
|
-
}
|
|
380
375
|
}
|
|
381
376
|
}
|
|
382
377
|
}
|
|
@@ -397,8 +392,8 @@ class ChatDrawerComponent {
|
|
|
397
392
|
}, (err) => {
|
|
398
393
|
console.error('Error fetching chat history:', err);
|
|
399
394
|
});
|
|
400
|
-
this.fetchAgents();
|
|
401
|
-
this.fetchEditorContent();
|
|
395
|
+
// this.fetchAgents();
|
|
396
|
+
// this.fetchEditorContent();
|
|
402
397
|
this.cdr.markForCheck();
|
|
403
398
|
// this.initializeSocket();
|
|
404
399
|
if (!this.checkForCop29BotId()) {
|
|
@@ -1276,7 +1271,9 @@ class ChatDrawerComponent {
|
|
|
1276
1271
|
}
|
|
1277
1272
|
// Toggle the dropdown visibility
|
|
1278
1273
|
toggleDropdown() {
|
|
1274
|
+
this.fetchAgents();
|
|
1279
1275
|
this.isDropdownOpen = !this.isDropdownOpen;
|
|
1276
|
+
this.cdr.detectChanges();
|
|
1280
1277
|
}
|
|
1281
1278
|
onSelectAll(event) {
|
|
1282
1279
|
var _a;
|
|
@@ -1540,12 +1537,17 @@ class ChatDrawerComponent {
|
|
|
1540
1537
|
}
|
|
1541
1538
|
}
|
|
1542
1539
|
toggleWorkflows(value = null) {
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1540
|
+
if (!this.checkForCop29BotId()) {
|
|
1541
|
+
this.botService.getWorkflowsByOrgId(this.orgId).subscribe((res) => {
|
|
1542
|
+
this.orgWorkflows = res;
|
|
1543
|
+
this.isWorkflowOpen = value == null ? !this.isWorkflowOpen : value;
|
|
1544
|
+
if (!this.isWorkflowOpen) {
|
|
1545
|
+
this.selectedWorkflow = null;
|
|
1546
|
+
this.openWorkflowInput = false;
|
|
1547
|
+
}
|
|
1548
|
+
this.cdr.detectChanges();
|
|
1549
|
+
});
|
|
1547
1550
|
}
|
|
1548
|
-
this.cdr.detectChanges();
|
|
1549
1551
|
}
|
|
1550
1552
|
initializeForm() {
|
|
1551
1553
|
var _a, _b;
|