From 42a6bfbd280cb0c0a9729c28c4e6af5dec0ba92d Mon Sep 17 00:00:00 2001 From: Josh Krawczyk Date: Tue, 25 Aug 2020 20:03:44 -0400 Subject: [PATCH] Fix error message when trying to enable alerts on policy check from agents table --- web/src/components/ChecksTab.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/web/src/components/ChecksTab.vue b/web/src/components/ChecksTab.vue index b1014ca1..5bc09e3f 100644 --- a/web/src/components/ChecksTab.vue +++ b/web/src/components/ChecksTab.vue @@ -125,16 +125,18 @@ @@ -375,7 +377,11 @@ export default { break; } }, - checkAlert(id, alert_type, action) { + checkAlert(id, alert_type, action, managed_by_policy) { + if (managed_by_policy) { + return; + } + const data = {}; if (alert_type === "Email") { data.email_alert = action;