From ff6031d3c914fa2c7ac514243394fa70a56c6bd7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 14 Feb 2021 18:59:09 +0300 Subject: remove old-style markup from exception dialog --- js/App.js | 44 +++++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 21 deletions(-) (limited to 'js') diff --git a/js/App.js b/js/App.js index 1e6e5fdb1..0a72d1b12 100644 --- a/js/App.js +++ b/js/App.js @@ -542,29 +542,31 @@ const App = { } try { - let stack_msg = ""; - - if (error.stack) - stack_msg += `
Stack trace:
- `; - - if (params.info) - stack_msg += `
Additional information:
- `; - - const content = `
-

${message}

- ${stack_msg} -
- -
-
`; - const dialog = new fox.SingleUseDialog({ - id: "exceptionDlg", title: params.title || __("Unhandled exception"), - content: content + content: ` +
+

${message}

+ +
${__('Stack trace')}
+
+ +
+ + ${params && params.info ? + ` +
${__('Additional information')}
+
+ +
+ ` : ''} +
+ + ` }); dialog.show(); -- cgit v1.2.3