diff --git a/src/components/AlertsIcon.vue b/src/components/AlertsIcon.vue index 3e24bd4..3887a97 100644 --- a/src/components/AlertsIcon.vue +++ b/src/components/AlertsIcon.vue @@ -7,7 +7,7 @@ {{ alert.client }} - {{ alert.site }} - {{ alert.hostname }} - + {{ alert.message }} diff --git a/src/components/AlertsManager.vue b/src/components/AlertsManager.vue index 2afd4d1..8df6ecb 100644 --- a/src/components/AlertsManager.vue +++ b/src/components/AlertsManager.vue @@ -86,17 +86,18 @@ :class="rowSelectedClass(props.row.id, selectedTemplate)" @click="selectedTemplate = props.row" @contextmenu="selectedTemplate = props.row" + @dblclick="showEditTemplateModal(props.row)" > - + Edit - + @@ -105,6 +106,15 @@ + + + + + Alert Exclusions + + + + Close @@ -137,7 +147,18 @@ Applied To Placeholder - Alert Exclusions + + Alert Exclusions ({{ + props.row.excluded_agents.length + + props.row.excluded_clients.length + + props.row.excluded_sites.length + }}) {{ props.row.actions.length }} actions @@ -152,6 +173,7 @@ \ No newline at end of file diff --git a/src/components/modals/alerts/AlertTemplateForm.vue b/src/components/modals/alerts/AlertTemplateForm.vue index 7c77361..1c299bf 100644 --- a/src/components/modals/alerts/AlertTemplateForm.vue +++ b/src/components/modals/alerts/AlertTemplateForm.vue @@ -559,7 +559,7 @@ export default { .put(`alerts/alerttemplates/${this.template.id}/`, this.template) .then(r => { this.$q.loading.hide(); - this.onOK(); + this.onOk(); this.notifySuccess("Alert Template edited!"); }) .catch(e => { @@ -571,7 +571,7 @@ export default { .post("alerts/alerttemplates/", this.template) .then(r => { this.$q.loading.hide(); - this.onOK(); + this.onOk(); this.notifySuccess(`Alert Template was added!`); }) .catch(e => { @@ -596,7 +596,7 @@ export default { onHide() { this.$emit("hide"); }, - onOK() { + onOk() { this.$emit("ok"); this.hide(); },