supervisor_account
diff --git a/ui-ngx/src/app/modules/home/pages/notification/sent/sent-notification-dialog.componet.ts b/ui-ngx/src/app/modules/home/pages/notification/sent/sent-notification-dialog.componet.ts
index 4846cd063d..938ec2756f 100644
--- a/ui-ngx/src/app/modules/home/pages/notification/sent/sent-notification-dialog.componet.ts
+++ b/ui-ngx/src/app/modules/home/pages/notification/sent/sent-notification-dialog.componet.ts
@@ -315,7 +315,7 @@ export class SentNotificationDialogComponent extends
if(this.isSysAdmin()) {
return true;
} else if (this.isTenantAdmin()) {
- return deliveryMethod === NotificationDeliveryMethod.SLACK;
+ return deliveryMethod === NotificationDeliveryMethod.SLACK || deliveryMethod === NotificationDeliveryMethod.MOBILE;
}
return false;
}
@@ -330,6 +330,7 @@ export class SentNotificationDialogComponent extends
return '/settings/outgoing-mail';
case NotificationDeliveryMethod.SMS:
case NotificationDeliveryMethod.SLACK:
+ case NotificationDeliveryMethod.MOBILE:
return '/settings/notifications';
}
}
diff --git a/ui-ngx/src/app/modules/home/pages/notification/template/template-configuration.ts b/ui-ngx/src/app/modules/home/pages/notification/template/template-configuration.ts
index b3fa00ef72..90115738a6 100644
--- a/ui-ngx/src/app/modules/home/pages/notification/template/template-configuration.ts
+++ b/ui-ngx/src/app/modules/home/pages/notification/template/template-configuration.ts
@@ -43,6 +43,7 @@ export abstract class TemplateConfiguration
extends DialogComponent<
emailTemplateForm: FormGroup;
smsTemplateForm: FormGroup;
slackTemplateForm: FormGroup;
+ mobileTemplateForm: FormGroup;
notificationDeliveryMethods = Object.keys(NotificationDeliveryMethod) as NotificationDeliveryMethod[];
notificationDeliveryMethodTranslateMap = NotificationDeliveryMethodTranslateMap;
@@ -163,11 +164,17 @@ export abstract class TemplateConfiguration extends DialogComponent<
body: ['', Validators.required]
});
+ this.mobileTemplateForm = this.fb.group({
+ subject: ['', Validators.required],
+ body: ['', Validators.required]
+ });
+
this.deliveryMethodFormsMap = new Map([
[NotificationDeliveryMethod.WEB, this.webTemplateForm],
[NotificationDeliveryMethod.EMAIL, this.emailTemplateForm],
[NotificationDeliveryMethod.SMS, this.smsTemplateForm],
- [NotificationDeliveryMethod.SLACK, this.slackTemplateForm]
+ [NotificationDeliveryMethod.SLACK, this.slackTemplateForm],
+ [NotificationDeliveryMethod.MOBILE, this.mobileTemplateForm]
]);
}
diff --git a/ui-ngx/src/app/modules/home/pages/notification/template/template-notification-dialog.component.html b/ui-ngx/src/app/modules/home/pages/notification/template/template-notification-dialog.component.html
index 067258fa24..1a623af7b9 100644
--- a/ui-ngx/src/app/modules/home/pages/notification/template/template-notification-dialog.component.html
+++ b/ui-ngx/src/app/modules/home/pages/notification/template/template-notification-dialog.component.html
@@ -259,6 +259,32 @@
+
+ {{ 'notification.delivery-method.mobile' | translate }}
+
+ {{ 'notification.input-field-support-templatization' | translate}}
+
+
+
+