UI: Add new notification recipient types
This commit is contained in:
parent
604e591274
commit
b10e162b19
@ -191,8 +191,14 @@ export class RecipientNotificationDialogComponent extends
|
|||||||
|
|
||||||
private allowNotificationTargetConfigTypes(): NotificationTargetConfigType[] {
|
private allowNotificationTargetConfigTypes(): NotificationTargetConfigType[] {
|
||||||
if (this.isSysAdmin()) {
|
if (this.isSysAdmin()) {
|
||||||
return [NotificationTargetConfigType.ALL_USERS, NotificationTargetConfigType.TENANT_ADMINISTRATORS];
|
return [
|
||||||
|
NotificationTargetConfigType.ALL_USERS,
|
||||||
|
NotificationTargetConfigType.TENANT_ADMINISTRATORS,
|
||||||
|
NotificationTargetConfigType.AFFECTED_TENANT_ADMINISTRATORS,
|
||||||
|
NotificationTargetConfigType.SYSTEM_ADMINISTRATORS
|
||||||
|
];
|
||||||
}
|
}
|
||||||
return Object.values(NotificationTargetConfigType);
|
return Object.values(NotificationTargetConfigType).filter(type =>
|
||||||
|
type !== NotificationTargetConfigType.AFFECTED_TENANT_ADMINISTRATORS && type !== NotificationTargetConfigType.SYSTEM_ADMINISTRATORS);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -357,7 +357,9 @@ export enum NotificationTargetConfigType {
|
|||||||
CUSTOMER_USERS = 'CUSTOMER_USERS',
|
CUSTOMER_USERS = 'CUSTOMER_USERS',
|
||||||
USER_LIST = 'USER_LIST',
|
USER_LIST = 'USER_LIST',
|
||||||
ORIGINATOR_ENTITY_OWNER_USERS = 'ORIGINATOR_ENTITY_OWNER_USERS',
|
ORIGINATOR_ENTITY_OWNER_USERS = 'ORIGINATOR_ENTITY_OWNER_USERS',
|
||||||
AFFECTED_USER = 'AFFECTED_USER'
|
AFFECTED_USER = 'AFFECTED_USER',
|
||||||
|
SYSTEM_ADMINISTRATORS = 'SYSTEM_ADMINISTRATORS',
|
||||||
|
AFFECTED_TENANT_ADMINISTRATORS = 'AFFECTED_TENANT_ADMINISTRATORS'
|
||||||
}
|
}
|
||||||
|
|
||||||
interface NotificationTargetConfigTypeInfo {
|
interface NotificationTargetConfigTypeInfo {
|
||||||
@ -397,6 +399,16 @@ export const NotificationTargetConfigTypeInfoMap = new Map<NotificationTargetCon
|
|||||||
name: 'notification.recipient-type.affected-user',
|
name: 'notification.recipient-type.affected-user',
|
||||||
hint: 'notification.recipient-type.affected-user-hint'
|
hint: 'notification.recipient-type.affected-user-hint'
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
[NotificationTargetConfigType.SYSTEM_ADMINISTRATORS,
|
||||||
|
{
|
||||||
|
name: 'notification.recipient-type.system-administrators'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[NotificationTargetConfigType.AFFECTED_TENANT_ADMINISTRATORS,
|
||||||
|
{
|
||||||
|
name: 'notification.recipient-type.affected-tenant-administrators'
|
||||||
|
}
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
@ -2857,10 +2857,12 @@
|
|||||||
"recipient": "Recipient",
|
"recipient": "Recipient",
|
||||||
"recipient-group": "Recipient group",
|
"recipient-group": "Recipient group",
|
||||||
"recipient-type": {
|
"recipient-type": {
|
||||||
|
"affected-tenant-administrators": "Affected tenant administrators",
|
||||||
"affected-user": "Affected user",
|
"affected-user": "Affected user",
|
||||||
"affected-user-hint": "Affected user hint",
|
"affected-user-hint": "Affected user hint",
|
||||||
"all-users": "All users",
|
"all-users": "All users",
|
||||||
"customer-users": "Customer users",
|
"customer-users": "Customer users",
|
||||||
|
"system-administrators": "System administrators",
|
||||||
"tenant-administrators": "Tenant administrators",
|
"tenant-administrators": "Tenant administrators",
|
||||||
"user-filters": "User filter",
|
"user-filters": "User filter",
|
||||||
"user-list": "User list",
|
"user-list": "User list",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user