rename chat: update to new popup

This commit is contained in:
Cohee
2025-06-03 00:19:31 +03:00
parent 13b3f61e82
commit c4a44bc08d

View File

@@ -11084,9 +11084,9 @@ jQuery(async function () {
const oldFileName = oldFileNameFull.replace('.jsonl', ''); const oldFileName = oldFileNameFull.replace('.jsonl', '');
const popupText = await renderTemplateAsync('chatRename'); 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'); console.log('no new name found, aborting');
return; return;
} }