mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
rename chat: update to new popup
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user