@hivegpt/hiveai-angular 0.0.248 → 0.0.249
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 +8 -3
- 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 +9 -4
- package/fesm2015/hivegpt-hiveai-angular.js +8 -3
- 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
|
@@ -728,6 +728,7 @@
|
|
|
728
728
|
});
|
|
729
729
|
};
|
|
730
730
|
this.currentMessageForEditor = '';
|
|
731
|
+
this.currentIndexForEditor = -1;
|
|
731
732
|
this.isDropdownOpen = false;
|
|
732
733
|
this.selectedAgents = [];
|
|
733
734
|
this.allSelected = false;
|
|
@@ -1518,25 +1519,29 @@
|
|
|
1518
1519
|
var resutlt = this.copyText("messageText_" + index, index);
|
|
1519
1520
|
};
|
|
1520
1521
|
ChatDrawerComponent.prototype.handleEditorClick = function (index) {
|
|
1521
|
-
if (
|
|
1522
|
+
if (this.currentIndexForEditor == -1) {
|
|
1522
1523
|
this.currentIndexForEditor = index;
|
|
1523
1524
|
this.currentMessageForEditor = this.copyText("messageText_" + index, index);
|
|
1524
1525
|
this.cdr.detectChanges();
|
|
1526
|
+
console.log("HTML1");
|
|
1527
|
+
console.log(this.currentMessageForEditor);
|
|
1525
1528
|
}
|
|
1526
1529
|
else {
|
|
1527
1530
|
if (this.currentIndexForEditor == index) {
|
|
1528
1531
|
this.currentMessageForEditor += this.copyText("messageText_" + index, index);
|
|
1529
1532
|
this.cdr.detectChanges();
|
|
1533
|
+
console.log("HTML2");
|
|
1534
|
+
console.log(this.currentMessageForEditor);
|
|
1530
1535
|
}
|
|
1531
1536
|
else {
|
|
1532
1537
|
this.currentIndexForEditor = index;
|
|
1533
1538
|
this.currentMessageForEditor = this.copyText("messageText_" + index, index);
|
|
1534
1539
|
this.cdr.detectChanges();
|
|
1540
|
+
console.log("HTML3");
|
|
1541
|
+
console.log(this.currentMessageForEditor);
|
|
1535
1542
|
}
|
|
1536
1543
|
}
|
|
1537
1544
|
this.editorsDrawer.open();
|
|
1538
|
-
console.log("HTML");
|
|
1539
|
-
console.log(this.currentMessageForEditor);
|
|
1540
1545
|
};
|
|
1541
1546
|
ChatDrawerComponent.prototype.scrollToBottom = function () {
|
|
1542
1547
|
var _this = this;
|