diff --git a/src/components/AutomatedTasksTab.vue b/src/components/AutomatedTasksTab.vue index c28f865..cf79b5b 100644 --- a/src/components/AutomatedTasksTab.vue +++ b/src/components/AutomatedTasksTab.vue @@ -59,11 +59,11 @@ Edit + clickable + v-close-popup + @click="deleteTask(props.row.name, props.row.id)" + v-if="!props.row.managed_by_policy" + > diff --git a/src/components/ChecksTab.vue b/src/components/ChecksTab.vue index 3f22791..b1c3551 100644 --- a/src/components/ChecksTab.vue +++ b/src/components/ChecksTab.vue @@ -92,10 +92,10 @@ - diff --git a/src/components/automation/AutomationManager.vue b/src/components/automation/AutomationManager.vue index 5f546df..8b4e872 100644 --- a/src/components/automation/AutomationManager.vue +++ b/src/components/automation/AutomationManager.vue @@ -74,7 +74,6 @@ + - @@ -189,29 +181,17 @@ - - + + - + - + @@ -251,18 +231,18 @@ export default { name: "desc", label: "Description", field: "desc", - align: "left", + align: "left" }, { name: "actions", label: "Actions", field: "actions", - align: "left", + align: "left" } ], pagination: { rowsPerPage: 9999 - }, + } }; }, methods: { @@ -323,26 +303,26 @@ export default { this.showPolicyFormModal = true; }, showPolicyOverview() { - this.showPolicyOverviewModal = true + this.showPolicyOverviewModal = true; this.clearRow(); }, toggleCheckbox(policy, type) { let text = ""; if (type === "Active") { - text = policy.active ? "Policy enabled successfully" : "Policy disabled successfully"; + text = policy.active ? "Policy enabled successfully" : "Policy disabled successfully"; } else if (type === "Enforced") { - text = policy.enforced ? "Policy enforced successfully" : "Policy enforcement disabled"; + text = policy.enforced ? "Policy enforced successfully" : "Policy enforcement disabled"; } - const data ={ + const data = { id: policy.id, name: policy.name, desc: policy.desc, active: policy.active, enforced: policy.enforced - } - + }; + this.$store .dispatch("automation/editPolicy", data) .then(response => { diff --git a/src/components/automation/PolicyAutomatedTasksTab.vue b/src/components/automation/PolicyAutomatedTasksTab.vue index ee4d83e..3faf24e 100644 --- a/src/components/automation/PolicyAutomatedTasksTab.vue +++ b/src/components/automation/PolicyAutomatedTasksTab.vue @@ -11,7 +11,7 @@ ref="add" @click="showAddAutomatedTask = true" /> - -