Pull request #221: add recent period to recent button label
Merge in RED/ui from RED-1625 to master * commit '1eb035d60b0b0456432c02c0d33ea7283bb229a2': add recent period to recent button label
This commit is contained in:
commit
1fd2ea750f
@ -416,10 +416,15 @@ export class DossierOverviewScreenComponent
|
|||||||
|
|
||||||
private _computeQuickFilters() {
|
private _computeQuickFilters() {
|
||||||
if (this.allEntities.filter(this.recentlyModifiedChecker).length > 0) {
|
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 = [
|
this.quickFilters = [
|
||||||
{
|
{
|
||||||
key: this.user.id,
|
key: this.user.id,
|
||||||
label: 'dossier-overview.quick-filters.recent',
|
label: recentButtonText,
|
||||||
required: true,
|
required: true,
|
||||||
checker: this.recentlyModifiedChecker
|
checker: this.recentlyModifiedChecker
|
||||||
}
|
}
|
||||||
|
|||||||
@ -336,7 +336,7 @@
|
|||||||
"error": "Failed to schedule files for reanalysis. Please try again."
|
"error": "Failed to schedule files for reanalysis. Please try again."
|
||||||
},
|
},
|
||||||
"quick-filters": {
|
"quick-filters": {
|
||||||
"recent": "Recent",
|
"recent": "Recent ({{hours}} h)",
|
||||||
"assigned-to-me": "Assigned to me",
|
"assigned-to-me": "Assigned to me",
|
||||||
"unassigned": "Unassigned",
|
"unassigned": "Unassigned",
|
||||||
"assigned-to-others": "Assigned to others"
|
"assigned-to-others": "Assigned to others"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user