From db5d2f13f9bf420d2307b1b307d6eb533c2e8d71 Mon Sep 17 00:00:00 2001 From: LenAnderson Date: Sun, 21 Apr 2024 16:11:35 -0400 Subject: [PATCH] add click hint on parser error toast --- public/scripts/slash-commands.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/scripts/slash-commands.js b/public/scripts/slash-commands.js index 6a53983eb..159cc50e5 100644 --- a/public/scripts/slash-commands.js +++ b/public/scripts/slash-commands.js @@ -1616,9 +1616,10 @@ async function executeSlashCommands(text, handleParserErrors = true, scope = nul
${ex.message}
Line: ${ex.line} Column: ${ex.column}
${ex.hint}
- `; + `; + const clickHint = '

Click to see details

'; toastr.error( - toast, + `${toast}${clickHint}`, 'SlashCommandParserError', { escapeHtml:false, timeOut: 10000, onclick:()=>callPopup(toast, 'text') }, );