improve notification message for sync automation run
This commit is contained in:
parent
d43fc819c7
commit
59e1150eee
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue