From 59e1150eee68fe236dbe300277e48ff946bcf7b0 Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Tue, 16 May 2023 09:59:37 +0100 Subject: [PATCH] improve notification message for sync automation run --- packages/client/src/utils/buttonActions.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/client/src/utils/buttonActions.js b/packages/client/src/utils/buttonActions.js index 0280cd1d54..ed702f6718 100644 --- a/packages/client/src/utils/buttonActions.js +++ b/packages/client/src/utils/buttonActions.js @@ -130,14 +130,18 @@ const triggerAutomationHandler = async action => { fields, timeout, }) - if (!notificationOverride) { - notificationStore.actions.success("Automation triggered") - } // Value will exist if automation is synchronous, so return it. if (result.value) { + if (!notificationOverride) { + notificationStore.actions.success("Automation ran successfully") + } return { result } } + + if (!notificationOverride) { + notificationStore.actions.success("Automation triggered") + } } catch (error) { // Abort next actions return false