slash-commands.js: update for new popup

13b3f61e821d21bc7ba1d0b3a8f4fce88b971372

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +3 -4Ignore whitespace
public/scripts/slash-commands.js+3 -4
@@ -7,7 +7,6 @@ import {
7 activateSendButtons,7 activateSendButtons,
8 addOneMessage,8 addOneMessage,
9 api_server,9 api_server,
10 callPopup,
11 characters,10 characters,
12 chat,11 chat,
13 chat_metadata,12 chat_metadata,
@@ -4779,7 +4778,7 @@ export async function executeSlashCommandsOnChatInput(text, options = {}) {
4779 toastr.error(4778 toastr.error(
4780 `${toast}${clickHint}`,4779 `${toast}${clickHint}`,
4781 'SlashCommandExecutionError',4780 'SlashCommandExecutionError',
4782 { escapeHtml: false, timeOut: 10000, onclick: () => callPopup(toast, 'text') },4781 { escapeHtml: false, timeOut: 10000, onclick: () => callGenericPopup(toast, POPUP_TYPE.TEXT, '', { allowHorizontalScrolling: true, allowVerticalScrolling: true }) },
4783 );4782 );
4784 } else {4783 } else {
4785 toastr.error(result.errorMessage);4784 toastr.error(result.errorMessage);
@@ -4836,7 +4835,7 @@ async function executeSlashCommandsWithOptions(text, options = {}) {
4836 toastr.error(4835 toastr.error(
4837 `${toast}${clickHint}`,4836 `${toast}${clickHint}`,
4838 'SlashCommandParserError',4837 'SlashCommandParserError',
4839 { escapeHtml: false, timeOut: 10000, onclick: () => callPopup(toast, 'text') },4838 { escapeHtml: false, timeOut: 10000, onclick: () => callGenericPopup(toast, POPUP_TYPE.TEXT, '', { allowHorizontalScrolling: true, allowVerticalScrolling: true }) },
4840 );4839 );
4841 const result = new SlashCommandClosureResult();4840 const result = new SlashCommandClosureResult();
4842 return result;4841 return result;
@@ -4866,7 +4865,7 @@ async function executeSlashCommandsWithOptions(text, options = {}) {
4866 toastr.error(4865 toastr.error(
4867 `${toast}${clickHint}`,4866 `${toast}${clickHint}`,
4868 'SlashCommandExecutionError',4867 'SlashCommandExecutionError',
4869 { escapeHtml: false, timeOut: 10000, onclick: () => callPopup(toast, 'text') },4868 { escapeHtml: false, timeOut: 10000, onclick: () => callGenericPopup(toast, POPUP_TYPE.TEXT, '', { allowHorizontalScrolling: true, allowVerticalScrolling: true }) },
4870 );4869 );
4871 } else {4870 } else {
4872 toastr.error(e.message);4871 toastr.error(e.message);