From 0a1b19ebf8908427db8aa2bc3df83129979a8f62 Mon Sep 17 00:00:00 2001 From: Artem Dzhereleiko Date: Thu, 20 Jul 2023 11:46:00 +0300 Subject: [PATCH] UI: Refactoring get notification method --- .../settings/notification-settings.component.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ui-ngx/src/app/modules/home/pages/notification/settings/notification-settings.component.ts b/ui-ngx/src/app/modules/home/pages/notification/settings/notification-settings.component.ts index 8eac5d638d..c28e030eec 100644 --- a/ui-ngx/src/app/modules/home/pages/notification/settings/notification-settings.component.ts +++ b/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() {