SimpleChatTCRV:Cleanup:MouseEvents demote, UIRefreshy almost all
Demote the Popover related mouse event trapping related logs to debug level, as they are no longer required. Avoid using brute force chat_show instead use only the optimal chat_uirefresh wrt all paths in handle_user_submit, rather had forgotten to change previously.
This commit is contained in:
parent
c84ec53511
commit
c4cbeba463
|
|
@ -1254,7 +1254,7 @@ class MultiChatUI {
|
||||||
secMain.classList.add(`role-${msg.ns.role}`)
|
secMain.classList.add(`role-${msg.ns.role}`)
|
||||||
secMain.classList.add('chat-message')
|
secMain.classList.add('chat-message')
|
||||||
secMain.addEventListener('mouseenter', (ev)=>{
|
secMain.addEventListener('mouseenter', (ev)=>{
|
||||||
console.log(`DBUG:MCUI:ChatMessageMEnter:${msg.uniqId}`)
|
console.debug(`DBUG:MCUI:ChatMessageMEnter:${msg.uniqId}`)
|
||||||
if (this.uniqIdChatMsgPO != msg.uniqId) {
|
if (this.uniqIdChatMsgPO != msg.uniqId) {
|
||||||
this.elPopoverChatMsg.hidePopover()
|
this.elPopoverChatMsg.hidePopover()
|
||||||
}
|
}
|
||||||
|
|
@ -1263,7 +1263,7 @@ class MultiChatUI {
|
||||||
this.elPopoverChatMsg.showPopover({source: secMain})
|
this.elPopoverChatMsg.showPopover({source: secMain})
|
||||||
})
|
})
|
||||||
secMain.addEventListener('mouseleave', (ev)=>{
|
secMain.addEventListener('mouseleave', (ev)=>{
|
||||||
console.log(`DBUG:MCUI:ChatMessageMLeave:${msg.uniqId}`)
|
console.debug(`DBUG:MCUI:ChatMessageMLeave:${msg.uniqId}`)
|
||||||
})
|
})
|
||||||
elParent?.append(secMain)
|
elParent?.append(secMain)
|
||||||
secMain.setAttribute("CMUniqId", String(msg.uniqId))
|
secMain.setAttribute("CMUniqId", String(msg.uniqId))
|
||||||
|
|
@ -1624,7 +1624,7 @@ class MultiChatUI {
|
||||||
} else {
|
} else {
|
||||||
if (content.trim() == "") {
|
if (content.trim() == "") {
|
||||||
this.elInUser.placeholder = "dont forget to enter a message, before submitting to ai"
|
this.elInUser.placeholder = "dont forget to enter a message, before submitting to ai"
|
||||||
this.chat_show(chatId)
|
this.chat_uirefresh(chatId)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue