From 8329de15ba742b463b0cb6cf87a7532120f4943f Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 21 Jul 2024 17:12:37 +0200 Subject: [PATCH] [UI] Added extra `showError` condition on `/execute`. --- platypush/backend/http/webapp/src/utils/Api.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/platypush/backend/http/webapp/src/utils/Api.vue b/platypush/backend/http/webapp/src/utils/Api.vue index 52ab708855..7c05344716 100644 --- a/platypush/backend/http/webapp/src/utils/Api.vue +++ b/platypush/backend/http/webapp/src/utils/Api.vue @@ -27,10 +27,13 @@ export default { resolve(response.output); } else { const error = response.errors?.[0] || response - this.notify({ - text: error, - error: true, - }) + + if (showError) { + this.notify({ + text: error, + error: true, + }) + } reject(error) }