mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Update debug menu, theme and MUI naming popups
This commit is contained in:
@ -2,7 +2,6 @@ import {
|
||||
saveSettingsDebounced,
|
||||
scrollChatToBottom,
|
||||
characters,
|
||||
callPopup,
|
||||
reloadMarkdownProcessor,
|
||||
reloadCurrentChat,
|
||||
getRequestHeaders,
|
||||
@ -1433,7 +1432,7 @@ export function registerDebugFunction(functionId, name, description, func) {
|
||||
|
||||
async function showDebugMenu() {
|
||||
const template = await renderTemplateAsync('debug', { functions: debug_functions });
|
||||
callPopup(template, 'text', '', { wide: true, large: true });
|
||||
callGenericPopup(template, POPUP_TYPE.TEXT, '', { wide: true, large: true });
|
||||
}
|
||||
|
||||
switchUiMode();
|
||||
@ -2297,11 +2296,13 @@ async function importTheme(file) {
|
||||
*/
|
||||
async function saveTheme(name = undefined, theme = undefined) {
|
||||
if (typeof name !== 'string') {
|
||||
name = await callPopup('Enter a theme preset name:', 'input', power_user.theme);
|
||||
const newName = await callGenericPopup('Enter a theme preset name:', POPUP_TYPE.INPUT, power_user.theme);
|
||||
|
||||
if (!name) {
|
||||
if (!newName) {
|
||||
return;
|
||||
}
|
||||
|
||||
name = String(newName);
|
||||
}
|
||||
|
||||
if (typeof theme !== 'object') {
|
||||
@ -2399,7 +2400,7 @@ function getNewTheme(parsed) {
|
||||
}
|
||||
|
||||
async function saveMovingUI() {
|
||||
const name = await callPopup('Enter a name for the MovingUI Preset:', 'input');
|
||||
const name = await callGenericPopup('Enter a name for the MovingUI Preset:', POPUP_TYPE.INPUT);
|
||||
|
||||
if (!name) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user