From c4a44bc08dea07367fc5f091a0c9e09291675cf4 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Tue, 3 Jun 2025 00:19:31 +0300 Subject: [PATCH] rename chat: update to new popup --- public/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/script.js b/public/script.js index c435e9fd0..184379da0 100644 --- a/public/script.js +++ b/public/script.js @@ -11084,9 +11084,9 @@ jQuery(async function () { const oldFileName = oldFileNameFull.replace('.jsonl', ''); const popupText = await renderTemplateAsync('chatRename'); - const newName = await callPopup(popupText, 'input', oldFileName); + const newName = await callGenericPopup(popupText, POPUP_TYPE.INPUT, oldFileName); - if (!newName || newName == oldFileName) { + if (!newName || typeof newName !== 'string' || newName == oldFileName) { console.log('no new name found, aborting'); return; }