mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
slash-commands.js: update for new popup
This commit is contained in:
@@ -7,7 +7,6 @@ import {
|
|||||||
activateSendButtons,
|
activateSendButtons,
|
||||||
addOneMessage,
|
addOneMessage,
|
||||||
api_server,
|
api_server,
|
||||||
callPopup,
|
|
||||||
characters,
|
characters,
|
||||||
chat,
|
chat,
|
||||||
chat_metadata,
|
chat_metadata,
|
||||||
@@ -4779,7 +4778,7 @@ export async function executeSlashCommandsOnChatInput(text, options = {}) {
|
|||||||
toastr.error(
|
toastr.error(
|
||||||
`${toast}${clickHint}`,
|
`${toast}${clickHint}`,
|
||||||
'SlashCommandExecutionError',
|
'SlashCommandExecutionError',
|
||||||
{ escapeHtml: false, timeOut: 10000, onclick: () => callPopup(toast, 'text') },
|
{ escapeHtml: false, timeOut: 10000, onclick: () => callGenericPopup(toast, POPUP_TYPE.TEXT, '', { allowHorizontalScrolling: true, allowVerticalScrolling: true }) },
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
toastr.error(result.errorMessage);
|
toastr.error(result.errorMessage);
|
||||||
@@ -4836,7 +4835,7 @@ async function executeSlashCommandsWithOptions(text, options = {}) {
|
|||||||
toastr.error(
|
toastr.error(
|
||||||
`${toast}${clickHint}`,
|
`${toast}${clickHint}`,
|
||||||
'SlashCommandParserError',
|
'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();
|
const result = new SlashCommandClosureResult();
|
||||||
return result;
|
return result;
|
||||||
@@ -4866,7 +4865,7 @@ async function executeSlashCommandsWithOptions(text, options = {}) {
|
|||||||
toastr.error(
|
toastr.error(
|
||||||
`${toast}${clickHint}`,
|
`${toast}${clickHint}`,
|
||||||
'SlashCommandExecutionError',
|
'SlashCommandExecutionError',
|
||||||
{ escapeHtml: false, timeOut: 10000, onclick: () => callPopup(toast, 'text') },
|
{ escapeHtml: false, timeOut: 10000, onclick: () => callGenericPopup(toast, POPUP_TYPE.TEXT, '', { allowHorizontalScrolling: true, allowVerticalScrolling: true }) },
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
toastr.error(e.message);
|
toastr.error(e.message);
|
||||||
|
Reference in New Issue
Block a user