From 1eb035d60b0b0456432c02c0d33ea7283bb229a2 Mon Sep 17 00:00:00 2001 From: Dan Percic Date: Mon, 28 Jun 2021 13:31:18 +0300 Subject: [PATCH] add recent period to recent button label --- .../dossier-overview-screen.component.ts | 7 ++++++- apps/red-ui/src/assets/i18n/en.json | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/red-ui/src/app/modules/dossier/screens/dossier-overview-screen/dossier-overview-screen.component.ts b/apps/red-ui/src/app/modules/dossier/screens/dossier-overview-screen/dossier-overview-screen.component.ts index 2722a2092..7ca99eca1 100644 --- a/apps/red-ui/src/app/modules/dossier/screens/dossier-overview-screen/dossier-overview-screen.component.ts +++ b/apps/red-ui/src/app/modules/dossier/screens/dossier-overview-screen/dossier-overview-screen.component.ts @@ -416,10 +416,15 @@ export class DossierOverviewScreenComponent private _computeQuickFilters() { if (this.allEntities.filter(this.recentlyModifiedChecker).length > 0) { + const recentPeriodInHours = this._appConfigService.getConfig('RECENT_PERIOD_IN_HOURS'); + const recentButtonText = this._translateService.instant( + 'dossier-overview.quick-filters.recent', + { hours: recentPeriodInHours } + ); this.quickFilters = [ { key: this.user.id, - label: 'dossier-overview.quick-filters.recent', + label: recentButtonText, required: true, checker: this.recentlyModifiedChecker } diff --git a/apps/red-ui/src/assets/i18n/en.json b/apps/red-ui/src/assets/i18n/en.json index faf709953..84b4c1d60 100644 --- a/apps/red-ui/src/assets/i18n/en.json +++ b/apps/red-ui/src/assets/i18n/en.json @@ -336,7 +336,7 @@ "error": "Failed to schedule files for reanalysis. Please try again." }, "quick-filters": { - "recent": "Recent", + "recent": "Recent ({{hours}} h)", "assigned-to-me": "Assigned to me", "unassigned": "Unassigned", "assigned-to-others": "Assigned to others"