Skip to content

Commit

Permalink
Removed notification level configuration from ui
Browse files Browse the repository at this point in the history
Signed-off-by: Max Schiller <[email protected]>
Signed-off-by: Marlon Gäthje <[email protected]>
  • Loading branch information
MM-msr authored and mge-mm committed Nov 7, 2024
1 parent 183d690 commit 89acdd7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,6 @@
required
></b-form-select>
</b-form-group>
<b-form-group
id="fieldset-3"
:label="this.$t('admin.notification_level')"
label-for="input-3"
>
<b-form-select
id="input-3"
v-model="notificationLevel"
:options="availableLevels"
required
></b-form-select>
</b-form-group>
<b-form-group
id="fieldset-4"
:label="this.$t('admin.publisher')"
Expand Down Expand Up @@ -88,11 +76,6 @@ export default {
{ value: 'PORTFOLIO', text: 'Portfolio' },
{ value: 'SYSTEM', text: 'System' },
],
availableLevels: [
{ value: 'INFORMATIONAL', text: 'Informational', selected: true },
{ value: 'WARNING', text: 'Warning' },
{ value: 'ERROR', text: 'Error' },
],
availablePublishers: [],
};
},
Expand Down
22 changes: 0 additions & 22 deletions src/views/administration/notifications/ScheduledAlerts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,6 @@ export default {
return xssFilters.inHTMLData(common.valueWithDefault(value, ''));
},
},
{
title: this.$t('admin.notification_level'),
field: 'notificationLevel',
sortable: false,
formatter(value, row, index) {
return xssFilters.inHTMLData(common.valueWithDefault(value, ''));
},
},
{
title: this.$t('admin.enabled'),
field: 'enabled',
Expand Down Expand Up @@ -145,9 +137,6 @@ export default {
<b-form-group id="fieldset-2" :label="this.$t('admin.publisher_class')" label-for="input-2">
<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-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()"
type="text" v-model="destination" lazy="true" />
Expand Down Expand Up @@ -256,7 +245,6 @@ export default {
notifyChildren: row.notifyChildren,
publisherName: row.publisher.name,
publisherClass: row.publisher.publisherClass,
notificationLevel: row.notificationLevel,
destination: this.parseDestination(row),
token: this.parseToken(row),
tokenHeader: this.parseTokenHeader(row),
Expand All @@ -274,15 +262,6 @@ export default {
dataOn: '\u2713',
dataOff: '\u2715',
},
availableLevels: [
{
value: 'INFORMATIONAL',
text: 'Informational',
selected: true,
},
{ value: 'WARNING', text: 'Warning' },
{ value: 'ERROR', text: 'Error' },
],
};
},
created() {
Expand Down Expand Up @@ -372,7 +351,6 @@ export default {
enabled: this.enabled,
logSuccessfulPublish: this.logSuccessfulPublish,
notifyChildren: this.notifyChildren,
notificationLevel: this.notificationLevel,
publisherConfig: JSON.stringify({
destination: this.destination,
jiraTicketType: this.jiraTicketType,
Expand Down

0 comments on commit 89acdd7

Please sign in to comment.