From ec6bfaff5b75eb42d1f71110d9419cef5513996d Mon Sep 17 00:00:00 2001 From: sadnub Date: Thu, 21 Jan 2021 15:02:58 -0500 Subject: [PATCH] more alerts work --- src/components/AlertsManager.vue | 161 +++++--- src/components/ScriptManager.vue | 20 +- .../automation/AutomationManager.vue | 32 +- .../modals/alerts/AlertTemplateAdd.vue | 126 ++++++ .../modals/alerts/AlertTemplateForm.vue | 376 +++++++++++++----- src/components/modals/checks/ScriptCheck.vue | 26 +- .../modals/coresettings/EditCoreSettings.vue | 9 +- .../modals/scripts/ScriptFormModal.vue | 14 +- src/store/index.js | 8 + src/views/Dashboard.vue | 22 +- 10 files changed, 601 insertions(+), 193 deletions(-) create mode 100644 src/components/modals/alerts/AlertTemplateAdd.vue diff --git a/src/components/AlertsManager.vue b/src/components/AlertsManager.vue index f457af1..c7f95b8 100644 --- a/src/components/AlertsManager.vue +++ b/src/components/AlertsManager.vue @@ -1,6 +1,6 @@ \ No newline at end of file diff --git a/src/components/ScriptManager.vue b/src/components/ScriptManager.vue index 3415a4a..df53db5 100644 --- a/src/components/ScriptManager.vue +++ b/src/components/ScriptManager.vue @@ -416,16 +416,12 @@ export default { this.selectedScript = {}; }, viewCode(script) { - this.$q - .dialog({ - component: ScriptFormModal, - parent: this, - script: script, - readonly: true, - }) - .onDismiss(() => { - this.getScripts(); - }); + this.$q.dialog({ + component: ScriptFormModal, + parent: this, + script: script, + readonly: true, + }); }, favoriteScript(script) { this.$q.loading.show(); @@ -495,7 +491,7 @@ export default { categories: this.categories, readonly: false, }) - .onDismiss(() => { + .onOk(() => { this.getScripts(); }); }, @@ -508,7 +504,7 @@ export default { categories: this.categories, readonly: false, }) - .onDismiss(() => { + .onOk(() => { this.getScripts(); }); }, diff --git a/src/components/automation/AutomationManager.vue b/src/components/automation/AutomationManager.vue index 4238cc2..b212170 100644 --- a/src/components/automation/AutomationManager.vue +++ b/src/components/automation/AutomationManager.vue @@ -59,7 +59,7 @@ row-key="id" binary-state-sort hide-pagination - :hide-bottom="!!selected" + no-data-label="No Policies" > - -