From 13b3f61e821d21bc7ba1d0b3a8f4fce88b971372 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Tue, 3 Jun 2025 00:16:00 +0300 Subject: [PATCH] slash-commands.js: update for new popup --- public/scripts/slash-commands.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/public/scripts/slash-commands.js b/public/scripts/slash-commands.js index afc1758d8..4efdf939a 100644 --- a/public/scripts/slash-commands.js +++ b/public/scripts/slash-commands.js @@ -7,7 +7,6 @@ import { activateSendButtons, addOneMessage, api_server, - callPopup, characters, chat, chat_metadata, @@ -4779,7 +4778,7 @@ export async function executeSlashCommandsOnChatInput(text, options = {}) { toastr.error( `${toast}${clickHint}`, 'SlashCommandExecutionError', - { escapeHtml: false, timeOut: 10000, onclick: () => callPopup(toast, 'text') }, + { escapeHtml: false, timeOut: 10000, onclick: () => callGenericPopup(toast, POPUP_TYPE.TEXT, '', { allowHorizontalScrolling: true, allowVerticalScrolling: true }) }, ); } else { toastr.error(result.errorMessage); @@ -4836,7 +4835,7 @@ async function executeSlashCommandsWithOptions(text, options = {}) { toastr.error( `${toast}${clickHint}`, 'SlashCommandParserError', - { escapeHtml: false, timeOut: 10000, onclick: () => callPopup(toast, 'text') }, + { escapeHtml: false, timeOut: 10000, onclick: () => callGenericPopup(toast, POPUP_TYPE.TEXT, '', { allowHorizontalScrolling: true, allowVerticalScrolling: true }) }, ); const result = new SlashCommandClosureResult(); return result; @@ -4866,7 +4865,7 @@ async function executeSlashCommandsWithOptions(text, options = {}) { toastr.error( `${toast}${clickHint}`, 'SlashCommandExecutionError', - { escapeHtml: false, timeOut: 10000, onclick: () => callPopup(toast, 'text') }, + { escapeHtml: false, timeOut: 10000, onclick: () => callGenericPopup(toast, POPUP_TYPE.TEXT, '', { allowHorizontalScrolling: true, allowVerticalScrolling: true }) }, ); } else { toastr.error(e.message);