Browse Source

UI: Refactoring get notification method

pull/8903/head
Artem Dzhereleiko 3 years ago
parent
commit
0a1b19ebf8
  1. 6
      ui-ngx/src/app/modules/home/pages/notification/settings/notification-settings.component.ts

6
ui-ngx/src/app/modules/home/pages/notification/settings/notification-settings.component.ts

@ -67,11 +67,9 @@ export class NotificationSettingsComponent extends PageComponent implements OnIn
private getNotificationDeliveryMethods(): NotificationDeliveryMethod[] {
const deliveryMethods = new Set([
NotificationDeliveryMethod.WEB,
NotificationDeliveryMethod.SMS,
NotificationDeliveryMethod.EMAIL
NotificationDeliveryMethod.SLACK
]);
return Object.values(NotificationDeliveryMethod).filter(type => deliveryMethods.has(type));
return Object.values(NotificationDeliveryMethod).filter(type => !deliveryMethods.has(type));
}
private buildNotificationSettingsForm() {

Loading…
Cancel
Save