diff --git a/src/app/system/external-services/notification/notification.component.html b/src/app/system/external-services/notification/notification.component.html index 3ff7dc5a2..5e5ab93de 100644 --- a/src/app/system/external-services/notification/notification.component.html +++ b/src/app/system/external-services/notification/notification.component.html @@ -16,7 +16,7 @@ {{'labels.inputs.Value' | translate}} - {{ configuration.value }} + {{ getConfigurationValue(configuration) }} diff --git a/src/app/system/external-services/notification/notification.component.ts b/src/app/system/external-services/notification/notification.component.ts index 3f3f1eec7..8b1a21860 100644 --- a/src/app/system/external-services/notification/notification.component.ts +++ b/src/app/system/external-services/notification/notification.component.ts @@ -49,4 +49,12 @@ export class NotificationComponent implements OnInit { this.dataSource.sort = this.sort; } + getConfigurationValue(configuration: any): string { + const value = configuration.value; + if (configuration.name === 'server_key') { + return value.replace(value.substr(1, value.length - 3), value.substr(1, value.length - 3).replace(/./g, '*')); + } + return value; + } + }