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[] {
|
private getNotificationDeliveryMethods(): NotificationDeliveryMethod[] {
|
||||||
const deliveryMethods = new Set([
|
const deliveryMethods = new Set([
|
||||||
NotificationDeliveryMethod.WEB,
|
NotificationDeliveryMethod.SLACK
|
||||||
NotificationDeliveryMethod.SMS,
|
|
||||||
NotificationDeliveryMethod.EMAIL
|
|
||||||
]);
|
]);
|
||||||
return Object.values(NotificationDeliveryMethod).filter(type => deliveryMethods.has(type));
|
return Object.values(NotificationDeliveryMethod).filter(type => !deliveryMethods.has(type));
|
||||||
}
|
}
|
||||||
|
|
||||||
private buildNotificationSettingsForm() {
|
private buildNotificationSettingsForm() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user