bug fixes with automated manager deleting policies and adding

This commit is contained in:
sadnub
2021-01-30 18:12:09 -05:00
parent d86116f241
commit d22b04d08b
2 changed files with 3 additions and 2 deletions

View File

@@ -103,7 +103,7 @@
<q-item-section>Copy</q-item-section>
</q-item>
<q-item clickable v-close-popup @click="deletePolicy(props.row.id)">
<q-item clickable v-close-popup @click="deletePolicy(props.row)">
<q-item-section side>
<q-icon name="delete" />
</q-item-section>
@@ -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();

View File

@@ -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;
}