@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.
@@ -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 (!this.currentIndexForEditor) {
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;