From d22b04d08b22bc4ab600bfee2dd31a2ba3325d43 Mon Sep 17 00:00:00 2001 From: sadnub Date: Sat, 30 Jan 2021 18:12:09 -0500 Subject: [PATCH] bug fixes with automated manager deleting policies and adding --- src/components/automation/AutomationManager.vue | 3 ++- src/components/modals/alerts/AlertTemplateAdd.vue | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/automation/AutomationManager.vue b/src/components/automation/AutomationManager.vue index 9a8ca61..8def094 100644 --- a/src/components/automation/AutomationManager.vue +++ b/src/components/automation/AutomationManager.vue @@ -103,7 +103,7 @@ Copy - + @@ -326,6 +326,7 @@ export default { this.refresh(); this.$q.loading.hide(); this.notifySuccess("Policy was deleted!"); + this.$store.dispatch("loadTree"); }) .catch(error => { this.$q.loading.hide(); diff --git a/src/components/modals/alerts/AlertTemplateAdd.vue b/src/components/modals/alerts/AlertTemplateAdd.vue index 0fb314b..dc3a320 100644 --- a/src/components/modals/alerts/AlertTemplateAdd.vue +++ b/src/components/modals/alerts/AlertTemplateAdd.vue @@ -58,7 +58,7 @@ export default { methods: { submit() { // close because nothing was edited - if (this.object.alertTemplate === this.selectedTemplate) { + if (this.object.alert_template === this.selectedTemplate) { this.hide(); return; }