From 446f442fb83ba98e686daeb0e2eb0581afba0e86 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Sun, 12 Jul 2020 07:11:21 +0000 Subject: [PATCH] format all --- src/components/AutomatedTasksTab.vue | 10 +-- src/components/ChecksTab.vue | 8 +- .../automation/AutomationManager.vue | 62 +++++---------- .../automation/PolicyAutomatedTasksTab.vue | 51 +++++------- src/components/automation/PolicyChecksTab.vue | 14 ++-- src/components/automation/PolicyOverview.vue | 6 +- .../automation/modals/PolicyAdd.vue | 79 +++++++++---------- .../automation/modals/PolicyForm.vue | 17 ++-- .../automation/modals/PolicyStatus.vue | 51 ++++++------ .../automation/modals/RelationsView.vue | 13 +-- .../modals/coresettings/EditCoreSettings.vue | 21 +---- .../modals/tasks/AddAutomatedTask.vue | 6 +- src/mixins/dropdown_formatter.js | 14 ++-- 13 files changed, 147 insertions(+), 205 deletions(-) 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" /> - -