From 62de2f6716a9894ef453a13acc760e4ed162f6f2 Mon Sep 17 00:00:00 2001 From: Valentin Mihai Date: Mon, 15 Aug 2022 14:12:31 +0300 Subject: [PATCH] RED-4939 - No "Dossier Owner deleted"-Notifications for dossier member --- apps/red-ui/src/app/translations/notifications-translations.ts | 1 + apps/red-ui/src/assets/i18n/de.json | 1 + apps/red-ui/src/assets/i18n/en.json | 1 + libs/red-domain/src/lib/notifications/types.ts | 1 + 4 files changed, 4 insertions(+) diff --git a/apps/red-ui/src/app/translations/notifications-translations.ts b/apps/red-ui/src/app/translations/notifications-translations.ts index aa36fcc86..70f64abd5 100644 --- a/apps/red-ui/src/app/translations/notifications-translations.ts +++ b/apps/red-ui/src/app/translations/notifications-translations.ts @@ -6,6 +6,7 @@ export const notificationsTranslations: { [key in NotificationType]: string } = [NotificationTypes.ASSIGN_REVIEWER]: _('notification.assign-reviewer'), [NotificationTypes.DOCUMENT_APPROVED]: _('notification.document-approved'), [NotificationTypes.DOSSIER_OWNER_REMOVED]: _('notification.dossier-owner-removed'), + [NotificationTypes.DOSSIER_OWNER_DELETED]: _('notification.dossier-owner-deleted'), [NotificationTypes.DOSSIER_OWNER_SET]: _('notification.dossier-owner-set'), [NotificationTypes.UNASSIGNED_FROM_FILE]: _('notification.unassigned-from-file'), [NotificationTypes.USER_BECOMES_DOSSIER_MEMBER]: _('notification.user-becomes-dossier-member'), diff --git a/apps/red-ui/src/assets/i18n/de.json b/apps/red-ui/src/assets/i18n/de.json index ec230a7f4..339fda01f 100644 --- a/apps/red-ui/src/assets/i18n/de.json +++ b/apps/red-ui/src/assets/i18n/de.json @@ -1656,6 +1656,7 @@ "assign-reviewer": "Sie wurden dem Dokument {fileHref, select, null{{fileName}} other{{fileName}}} im Dossier {dossierHref, select, null{{dossierName}} other{{dossierName}}} als Reviewer zugewiesen!", "document-approved": "{fileHref, select, null{{fileName}} other{{fileName}}} wurde genehmigt!", "dossier-deleted": "Dossier: {dossierName} wurde gelöscht!", + "dossier-owner-deleted": "", "dossier-owner-removed": "Der Dossier-Owner von {dossierHref, select, null{{dossierName}} other{{dossierName}}} wurde entfernt!", "dossier-owner-set": "Eigentümer von {dossierHref, select, null{{dossierName}} other{{dossierName}}} geändert zu {user}!", "download-ready": "Ihr Download ist fertig!", diff --git a/apps/red-ui/src/assets/i18n/en.json b/apps/red-ui/src/assets/i18n/en.json index 04f0f0f9e..f08b700e2 100644 --- a/apps/red-ui/src/assets/i18n/en.json +++ b/apps/red-ui/src/assets/i18n/en.json @@ -1656,6 +1656,7 @@ "assign-reviewer": "You have been assigned as reviewer for {fileHref, select, null{{fileName}} other{{fileName}}} in dossier: {dossierHref, select, null{{dossierName}} other{{dossierName}}}!", "document-approved": " {fileHref, select, null{{fileName}} other{{fileName}}} has been approved!", "dossier-deleted": "Dossier: {dossierName} has been deleted!", + "dossier-owner-deleted": "Dossier owner has been deleted!", "dossier-owner-removed": "You have been removed as dossier owner from {dossierHref, select, null{{dossierName}} other{{dossierName}}}!", "dossier-owner-set": "You are now the dossier owner of {dossierHref, select, null{{dossierName}} other{{dossierName}}}!", "download-ready": "Your download is ready!", diff --git a/libs/red-domain/src/lib/notifications/types.ts b/libs/red-domain/src/lib/notifications/types.ts index 4e59d8bbb..64368a0a5 100644 --- a/libs/red-domain/src/lib/notifications/types.ts +++ b/libs/red-domain/src/lib/notifications/types.ts @@ -5,6 +5,7 @@ export const NotificationTypes = { DOCUMENT_APPROVED: 'DOCUMENT_APPROVED', // "A document has been approved" DOSSIER_OWNER_SET: 'DOSSIER_OWNER_SET', // "Dossier owner has changed" DOSSIER_OWNER_REMOVED: 'DOSSIER_OWNER_REMOVED', // "Dossier owner has been removed" + DOSSIER_OWNER_DELETED: 'DOSSIER_OWNER_DELETED', // "Dossier owner has been deleted" USER_BECOMES_DOSSIER_MEMBER: 'USER_BECOMES_DOSSIER_MEMBER', // "You have been assigned to a dossier" DOSSIER_DELETED: 'DOSSIER_DELETED', // "A dossier has been deleted" USER_REMOVED_AS_DOSSIER_MEMBER: 'USER_REMOVED_AS_DOSSIER_MEMBER', // "You have been removed from a dossier"