UI: Refactoring get notification method

This commit is contained in:
Artem Dzhereleiko 2023-07-20 11:46:00 +03:00
parent 642066d9b0
commit 0a1b19ebf8

View File

@ -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() {