From 30c6389382ed22f41848c9fa0fd0917a11ea60db Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Tue, 23 May 2023 14:18:59 +0200 Subject: [PATCH] added force show error parameter to standard toast --- vue/src/utils/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vue/src/utils/utils.js b/vue/src/utils/utils.js index 9d3b54da8..8cb011b2e 100644 --- a/vue/src/utils/utils.js +++ b/vue/src/utils/utils.js @@ -50,7 +50,7 @@ export class StandardToasts { static FAIL_MOVE = "FAIL_MOVE" static FAIL_MERGE = "FAIL_MERGE" - static makeStandardToast(context, toast, err) { + static makeStandardToast(context, toast, err = undefined, always_show_errors = false) { let title = '' let msg = '' let variant = '' @@ -124,7 +124,7 @@ export class StandardToasts { } - let DEBUG = localStorage.getItem("DEBUG") === "True" || false + let DEBUG = localStorage.getItem("DEBUG") === "True" || always_show_errors if (err !== undefined && 'response' in err && 'headers' in err.response) { if (DEBUG && err.response.headers['content-type'] === 'application/json' && err.response.status < 500) {