SimpleChatTCRV:Config++:Cleanup: Hide/Show UserIn and ValidateTC

When switching to settings ui, hide the User input and ValidateTC
areas.

When switching back to any chat session, unhide User input, while
the ValidateTC ui will be handled by corresponding helper logic
called through the ShowMessage
This commit is contained in:
hanishkvc 2025-11-23 17:36:34 +05:30
parent 7d6971a737
commit f7e9bdeed5
1 changed files with 4 additions and 0 deletions

View File

@ -1142,6 +1142,7 @@ class MultiChatUI {
this.elBtnUser = /** @type{HTMLButtonElement} */(document.getElementById("user-btn"));
this.elInUser = /** @type{HTMLInputElement} */(document.getElementById("user-in"));
this.elDivUserInImgs = /** @type{HTMLSelectElement} */(document.getElementById("user-in-imgs"));
this.elDivUserIn = /** @type{HTMLSelectElement} */(document.getElementById("user-in-div"));
this.elDivHeading = /** @type{HTMLSelectElement} */(document.getElementById("heading"));
this.elDivSessions = /** @type{HTMLDivElement} */(document.getElementById("sessions-div"));
this.elBtnSettings = /** @type{HTMLButtonElement} */(document.getElementById("settings"));
@ -1634,6 +1635,8 @@ class MultiChatUI {
this.elDivChat.replaceChildren();
let chat = this.simpleChats[this.curChatId]
chat.cfg.show_settings(this.elDivChat, chat.chatId);
this.elDivUserIn.hidden = true
this.elDivTool.hidden = true
this.me.houseKeeping.clear = true;
});
this.elBtnClearChat.addEventListener("click", (ev)=>{
@ -1936,6 +1939,7 @@ class MultiChatUI {
console.error(`ERRR:SimpleChat:MCUI:HandleSessionSwitch:${chatId} missing...`);
return;
}
this.elDivUserIn.hidden = false
this.elInSystem.value = chat.get_system_latest().ns.getContent();
this.curChatId = chatId;
this.chat_show(chatId, true, true);