Switch the notification messages around as it was stating it was enable/disabled at the wrong times. (#14124)

This commit is contained in:
Conor Webb 2024-07-09 09:55:19 +01:00 committed by GitHub
parent e23cfd3e4d
commit d1f0454831
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -146,13 +146,13 @@ const automationActions = store => ({
await store.actions.save(automation)
notifications.success(
`Automation ${
automation.disabled ? "enabled" : "disabled"
automation.disabled ? "disabled" : "enabled"
} successfully`
)
} catch (error) {
notifications.error(
`Error ${
automation && automation.disabled ? "enabling" : "disabling"
automation && automation.disabled ? "disabling" : "enabling"
} automation`
)
}