Skip to content

Commit

Permalink
Merge pull request #661 from rkg-mm/422-Notification-Level-for-Alerts…
Browse files Browse the repository at this point in the history
…-Cannot-be-Edited

Make alert notification level editable
  • Loading branch information
nscuro authored Dec 3, 2023
2 parents c20bd1e + e2e6bf6 commit 0962e43
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/views/administration/notifications/Alerts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
<b-form-input id="input-2" v-model="publisherClass" disabled class="form-control disabled" readonly trim />
</b-form-group>
<b-form-group id="fieldset-3" :label="this.$t('admin.notification_level')" label-for="input-3">
<b-form-input id="input-3" v-model="notificationLevel" disabled class="form-control disabled" readonly trim />
<b-form-select id="input-3" v-model="notificationLevel" :options="availableLevels" required></b-form-select>
</b-form-group>
<b-input-group-form-input id="input-destination" :label="$t('admin.destination')" input-group-size="mb-3"
:required="(!(this.alert.hasOwnProperty('teams') && this.alert.teams != null && this.alert.teams.length > 0)).toString()"
Expand Down Expand Up @@ -234,6 +234,11 @@
dataOn: '\u2713',
dataOff: '\u2715'
},
availableLevels: [
{ value: 'INFORMATIONAL', text: 'Informational', selected: true },
{ value: 'WARNING', text: 'Warning' },
{ value: 'ERROR', text: 'Error' }
]
}
},
created() {
Expand Down

0 comments on commit 0962e43

Please sign in to comment.