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