From c5a80fa4c23c1b9060960e68aeb6cc06986f2594 Mon Sep 17 00:00:00 2001 From: sbgap Date: Mon, 25 Nov 2024 13:29:01 +0100 Subject: [PATCH 1/2] feat: add all/and and any/or function for tags in notification rules --- src/components/NotificationRuleList.vue | 156 ++++++++++++++++++------ 1 file changed, 119 insertions(+), 37 deletions(-) diff --git a/src/components/NotificationRuleList.vue b/src/components/NotificationRuleList.vue index a7153de1..ba9770ae 100644 --- a/src/components/NotificationRuleList.vue +++ b/src/components/NotificationRuleList.vue @@ -497,32 +497,84 @@ - - - + add + add + + + + + clear + + clear + + + + + + + + + + + + + + + + + + delete + + + + + + + + @@ -826,16 +878,46 @@ {{ props.item.event }} {{ props.item.group }} - - - label - {{ tag }} - +
+ + + + AND: + + {{ severity }} + + + + OR: + + {{ severity }} + + + + + +
!!v || i18n.t('Required') From a1f2be8874c3cdf35800bbfe32994f7f12f5557b Mon Sep 17 00:00:00 2001 From: sbgap Date: Tue, 26 Nov 2024 13:49:04 +0100 Subject: [PATCH 2/2] feat: add and/all and or/any function to excluded tags in notification rules --- src/components/NotificationRuleList.vue | 164 ++++++++++++++++++------ 1 file changed, 123 insertions(+), 41 deletions(-) diff --git a/src/components/NotificationRuleList.vue b/src/components/NotificationRuleList.vue index ba9770ae..1c13b4b5 100644 --- a/src/components/NotificationRuleList.vue +++ b/src/components/NotificationRuleList.vue @@ -578,32 +578,84 @@
- - - + clear + + clear + + + + + + + + + + + + + + + + + + delete + + + + + + + + @@ -892,12 +944,12 @@ > AND: - {{ severity }} + {{ t }} OR: - {{ severity }} + {{ t }} @@ -920,16 +972,46 @@ - - - label - {{ tag }} - +
+ + + + AND: + + {{ t }} + + + + OR: + + {{ t }} + + + + + +
{{ props.item.user }}