From c1a3430ac60f9020b2c9a3055f07f27a4b28399c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adina=20=C8=9Aeudan?= Date: Fri, 8 Oct 2021 16:31:07 +0300 Subject: [PATCH] RED-2041 - download not allowed message --- .../buttons/file-download-btn/file-download-btn.component.ts | 2 +- apps/red-ui/src/assets/i18n/en.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/red-ui/src/app/modules/shared/components/buttons/file-download-btn/file-download-btn.component.ts b/apps/red-ui/src/app/modules/shared/components/buttons/file-download-btn/file-download-btn.component.ts index 96faf040d..708e10603 100644 --- a/apps/red-ui/src/app/modules/shared/components/buttons/file-download-btn/file-download-btn.component.ts +++ b/apps/red-ui/src/app/modules/shared/components/buttons/file-download-btn/file-download-btn.component.ts @@ -39,7 +39,7 @@ export class FileDownloadBtnComponent extends AutoUnsubscribe implements OnDestr get tooltip() { return this.canDownloadFiles ? this._translateService.instant('dossier-overview.download-file') - : this._translateService.instant('dossier-overview.download-file-disabled'); + : this._translateService.instant('dossier-overview.download-file-disabled', { count: this.files.length }); } downloadFiles($event: MouseEvent) { diff --git a/apps/red-ui/src/assets/i18n/en.json b/apps/red-ui/src/assets/i18n/en.json index d39f0280f..1983a87a9 100644 --- a/apps/red-ui/src/assets/i18n/en.json +++ b/apps/red-ui/src/assets/i18n/en.json @@ -663,7 +663,7 @@ } }, "download-file": "Download", - "download-file-disabled": "Download is only permitted for approved files", + "download-file-disabled": "You need to be approver in the dossier and the {count, plural, one{file needs} other{files need}} to be approved in order to download.", "file-listing": { "file-entry": { "file-error": "Re-processing required",