diff --git a/public/script.js b/public/script.js index 62d7942ad..6ab1ddccc 100644 --- a/public/script.js +++ b/public/script.js @@ -7732,7 +7732,7 @@ jQuery(async function () { registerSlashCommand('dupe', DupeChar, [], '– duplicates the currently selected character', true, true); registerSlashCommand('api', connectAPISlash, [], '(kobold, horde, novel, ooba, oai, claude, windowai, openrouter, scale, ai21, palm) – connect to an API', true, true); registerSlashCommand('impersonate', doImpersonate, ['imp'], '– calls an impersonation response', true, true); - registerSlashCommand('api/chats/delete', doDeleteChat, [], '– deletes the current chat', true, true); + registerSlashCommand('delchat', doDeleteChat, [], '– deletes the current chat', true, true); registerSlashCommand('closechat', doCloseChat, [], '– closes the current chat', true, true); registerSlashCommand('panels', doTogglePanels, ['togglepanels'], '– toggle UI panels on/off', true, true); registerSlashCommand('forcesave', doForceSave, [], '– forces a save of the current chat and settings', true, true); @@ -8161,6 +8161,7 @@ jQuery(async function () { }; try { + showLoader(); const response = await fetch('/api/chats/rename', { method: 'POST', body: JSON.stringify(body), @@ -8193,8 +8194,11 @@ jQuery(async function () { $('#option_select_chat').trigger('click'); $('#options').hide(); } catch { + hideLoader(); await delay(500); await callPopup('An error has occurred. Chat was not renamed.', 'text'); + } finally { + hideLoader(); } }); @@ -8352,7 +8356,7 @@ jQuery(async function () { if (id == 'option_select_chat') { if ((selected_group && !is_group_generating) || (this_chid !== undefined && !is_send_press) || fromSlashCommand) { displayPastChats(); - //this is just to avoid the shadow for past chat view when using /api/chats/delete + //this is just to avoid the shadow for past chat view when using /delchat //however, the dialog popup still gets one.. if (!fromSlashCommand) { console.log('displaying shadow'); diff --git a/public/scripts/power-user.js b/public/scripts/power-user.js index 0ca7b336e..21806cb99 100644 --- a/public/scripts/power-user.js +++ b/public/scripts/power-user.js @@ -813,6 +813,7 @@ async function CreateZenSliders(elmnt) { if (numVal === offVal) { handle.text('Off').css('color', 'rgba(128,128,128,0.5'); } else if (numVal === allVal) { handle.text('All'); } else { handle.css('color', ''); } + numVal = steps[stepNumber]; } //everything else uses the flat slider value //also note: the above sliders are not custom inputtable due to the array aliasing