add recent period to recent button label

This commit is contained in:
Dan Percic 2021-06-28 13:31:18 +03:00
parent 5f9acc8a9e
commit 1eb035d60b
2 changed files with 7 additions and 2 deletions

View File

@ -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
}

View File

@ -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"