mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix checkpoint create auto generate (and more)
- Fix empty checkpoint name on mes click to auto generate - Change /checkpoint-create to not require name and auto generate - Fix popup input type returning empty string instead of null on empty input field
This commit is contained in:
@ -83,6 +83,9 @@ const showPopupHelper = {
|
||||
const content = PopupUtils.BuildTextWithHeader(header, text);
|
||||
const popup = new Popup(content, POPUP_TYPE.INPUT, defaultValue, popupOptions);
|
||||
const value = await popup.show();
|
||||
// Return values: If empty string, we explicitly handle that as returning that empty string as "success" provided.
|
||||
// Otherwise, all non-truthy values (false, null, undefined) are treated as "cancel" and return null.
|
||||
if (value === '') return '';
|
||||
return value ? String(value) : null;
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user