From a7038d25d9e6843b6efcd990d4af0dc5114069ed Mon Sep 17 00:00:00 2001 From: Valentin Date: Fri, 17 Dec 2021 18:43:43 +0200 Subject: [PATCH] added 'download ready' notification type --- .../app/translations/notifications-translations.ts | 1 + apps/red-ui/src/assets/i18n/en.json | 13 +++++++------ libs/red-domain/src/lib/notifications/types.ts | 1 + 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/apps/red-ui/src/app/translations/notifications-translations.ts b/apps/red-ui/src/app/translations/notifications-translations.ts index adf4ca5bb..aa36fcc86 100644 --- a/apps/red-ui/src/app/translations/notifications-translations.ts +++ b/apps/red-ui/src/app/translations/notifications-translations.ts @@ -13,4 +13,5 @@ export const notificationsTranslations: { [key in NotificationType]: string } = [NotificationTypes.USER_DEGRADED_TO_REVIEWER]: _('notification.user-demoted-to-reviewer'), [NotificationTypes.USER_PROMOTED_TO_APPROVER]: _('notification.user-promoted-to-approver'), [NotificationTypes.USER_REMOVED_AS_DOSSIER_MEMBER]: _('notification.user-removed-as-dossier-member'), + [NotificationTypes.DOWNLOAD_READY]: _('notification.download-ready'), } as const; diff --git a/apps/red-ui/src/assets/i18n/en.json b/apps/red-ui/src/assets/i18n/en.json index ad7d27030..54da1734b 100644 --- a/apps/red-ui/src/assets/i18n/en.json +++ b/apps/red-ui/src/assets/i18n/en.json @@ -364,12 +364,12 @@ "save": "Save Changes" }, "content": { + "classification": "Value / Classification", "comment": "Comment", "legalBasis": "Legal Basis", "reason": "Select redaction reason", - "section": "Paragraph / Location", - "classification": "Value / Classification", - "reason-placeholder": "Select a reason..." + "reason-placeholder": "Select a reason...", + "section": "Paragraph / Location" }, "header": "Edit Redaction Reason" }, @@ -1264,14 +1264,14 @@ "save": "Save" }, "content": { + "classification": "Value / Classification", "comment": "Comment", "dictionary": "Dictionary", "legalBasis": "Legal Basis", "reason": "Reason", - "section": "Paragraph / Location", - "classification": "Value / Classification", "reason-placeholder": "Select a reason ...", "rectangle": "Custom Rectangle", + "section": "Paragraph / Location", "text": "Selected text:" }, "header": { @@ -1306,6 +1306,7 @@ "dossier-deleted": "Dossier: {dossierName} has been deleted!", "dossier-owner-removed": "{dossierName} owner removed!", "dossier-owner-set": " {dossierName} owner changed to {user}!", + "download-ready": "Your download is ready!", "no-data": "You currently have no notifications", "unassigned-from-file": "You have been unassigned from {fileName} in the {dossierName}!", "user-becomes-dossier-member": "{user} joined dossier: {dossierName}!", @@ -1498,9 +1499,9 @@ }, "search-screen": { "cols": { + "assignee": "Assignee", "document": "Document", "dossier": "Dossier", - "assignee": "Assignee", "pages": "Pages", "status": "Status" }, diff --git a/libs/red-domain/src/lib/notifications/types.ts b/libs/red-domain/src/lib/notifications/types.ts index fb1465a6f..4e59d8bbb 100644 --- a/libs/red-domain/src/lib/notifications/types.ts +++ b/libs/red-domain/src/lib/notifications/types.ts @@ -10,6 +10,7 @@ export const NotificationTypes = { USER_REMOVED_AS_DOSSIER_MEMBER: 'USER_REMOVED_AS_DOSSIER_MEMBER', // "You have been removed from a dossier" USER_PROMOTED_TO_APPROVER: 'USER_PROMOTED_TO_APPROVER', // "You are promoted to approver" USER_DEGRADED_TO_REVIEWER: 'USER_DEGRADED_TO_REVIEWER', // "You are denoted to reviewer" + DOWNLOAD_READY: 'DOWNLOAD_READY', } as const; export type NotificationType = keyof typeof NotificationTypes;