UI: Refactoring get notification method
This commit is contained in:
parent
642066d9b0
commit
0a1b19ebf8
@ -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…
x
Reference in New Issue
Block a user