diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json
index de974d7e6..b66869550 100644
--- a/src/i18n/locales/en.json
+++ b/src/i18n/locales/en.json
@@ -672,6 +672,7 @@
"select_ecosystem": "Select Ecosystems",
"registered_email_address": "Registered email address",
"api_token": "API token",
+ "api_token_header": "API token header",
"consumer_key": "Consumer key",
"consumer_secret": "Consumer secret",
"personal_access_token": "Personal Access Token",
diff --git a/src/views/administration/notifications/Alerts.vue b/src/views/administration/notifications/Alerts.vue
index 31f1a4bca..1c5887610 100644
--- a/src/views/administration/notifications/Alerts.vue
+++ b/src/views/administration/notifications/Alerts.vue
@@ -147,6 +147,10 @@ export default {
+
+
FILE_SYSTEM
INDEXING_SERVICE
REPOSITORY
+ USER_CREATED
+ USER_DELETED
@@ -233,6 +239,8 @@ export default {
publisherClass: row.publisher.publisherClass,
notificationLevel: row.notificationLevel,
destination: this.parseDestination(row),
+ token: this.parseToken(row),
+ tokenHeader: this.parseTokenHeader(row),
jiraTicketType: this.parseJiraTicketType(row),
scope: row.scope,
notifyOn: row.notifyOn,
@@ -256,6 +264,8 @@ export default {
},
created() {
this.parseDestination(this.alert);
+ this.parseToken(this.alert);
+ this.parseTokenHeader(this.alert);
this.parseJiraTicketType(this.alert);
},
watch: {
@@ -292,6 +302,24 @@ export default {
return null;
}
},
+ parseToken: function (alert) {
+ if (alert.publisherConfig) {
+ let value = JSON.parse(alert.publisherConfig);
+ if (value) {
+ return value.token;
+ }
+ return null;
+ }
+ },
+ parseTokenHeader: function (alert) {
+ if (alert.publisherConfig) {
+ let value = JSON.parse(alert.publisherConfig);
+ if (value) {
+ return value.tokenHeader;
+ }
+ return null;
+ }
+ },
parseJiraTicketType: function (alert) {
if (alert.publisherConfig) {
let value = JSON.parse(alert.publisherConfig);
@@ -314,12 +342,16 @@ export default {
publisherConfig: JSON.stringify({
destination: this.destination,
jiraTicketType: this.jiraTicketType,
+ token: this.token,
+ tokenHeader: this.tokenHeader,
}),
notifyOn: this.notifyOn,
})
.then((response) => {
this.alert = response.data;
this.destination = this.parseDestination(this.alert);
+ this.token = this.parseToken(this.alert);
+ this.tokenHeader = this.parseTokenHeader(this.alert);
this.jiraTicketType = this.parseJiraTicketType(this.alert);
EventBus.$emit('admin:alerts:rowUpdate', index, this.alert);
this.$toastr.s(this.$t('message.updated'));