Skip to content

Commit 0bf649a

Browse files
authored
Merge pull request #274 from rbt-mm/master-limit-alert-rules-to-project-including-all-existing-or-future-versions
Include a projects children in an alert rules limitations
2 parents 58b8940 + b03b122 commit 0bf649a

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

src/i18n/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,7 @@
501501
"delete_alert": "Delete Alert",
502502
"limit_to": "Limit To",
503503
"limit_to_projects": "Limit to projects",
504+
"include_children": "Include active children of projects",
504505
"limit_to_tags": "Limit to Tags",
505506
"alert_created": "Alert created",
506507
"alert_deleted": "Alert deleted",

src/views/administration/notifications/Alerts.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@
155155
<actionable-list-group-item :add-icon="true" v-on:actionClicked="$root.$emit('bv::show::modal', 'selectProjectModal')"/>
156156
</div>
157157
</b-form-group>
158+
<div v-if="limitToVisible === true">
159+
<c-switch id="isNotifyChildrenEnabled" color="primary" v-model="notifyChildren" label v-bind="labelIcon"/>
160+
{{ $t('admin.include_children') }}
161+
</div>
158162
</b-col>
159163
<b-col sm="6">
160164
<b-form-group id="fieldset-5" :label="this.$t('admin.scope')" label-for="input-5">
@@ -209,6 +213,7 @@
209213
uuid: row.uuid,
210214
name: row.name,
211215
enabled: row.enabled,
216+
notifyChildren: row.notifyChildren,
212217
publisherClass: row.publisher.publisherClass,
213218
notificationLevel: row.notificationLevel,
214219
destination: this.parseDestination(row),
@@ -230,6 +235,9 @@
230235
enabled() {
231236
this.updateNotificationRule();
232237
},
238+
notifyChildren() {
239+
this.updateNotificationRule();
240+
},
233241
notifyOn() {
234242
this.updateNotificationRule();
235243
},
@@ -260,6 +268,7 @@
260268
uuid: this.uuid,
261269
name: this.name,
262270
enabled: this.enabled,
271+
notifyChildren: this.notifyChildren,
263272
notificationLevel: this.notificationLevel,
264273
publisherConfig: JSON.stringify({ destination: this.destination }),
265274
notifyOn: this.notifyOn

0 commit comments

Comments
 (0)