From f7e9bdeed53726873f532c5382affb81b8490702 Mon Sep 17 00:00:00 2001 From: hanishkvc Date: Sun, 23 Nov 2025 17:36:34 +0530 Subject: [PATCH] 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 --- tools/server/public_simplechat/simplechat.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/server/public_simplechat/simplechat.js b/tools/server/public_simplechat/simplechat.js index a79603e550..ce4a19dbcc 100644 --- a/tools/server/public_simplechat/simplechat.js +++ b/tools/server/public_simplechat/simplechat.js @@ -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);