From a7851b8371379033c8a6b5f2ada27870f1a72071 Mon Sep 17 00:00:00 2001 From: apapachristou Date: Fri, 31 Jul 2020 17:07:58 +0300 Subject: [PATCH] Adds option sort by published at ( front end ) --- dmp-frontend/src/app/core/common/enum/recent-activity-order.ts | 3 +++ .../src/app/core/services/utilities/enum-utils.service.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/dmp-frontend/src/app/core/common/enum/recent-activity-order.ts b/dmp-frontend/src/app/core/common/enum/recent-activity-order.ts index 792ede63c..bfed5fac8 100644 --- a/dmp-frontend/src/app/core/common/enum/recent-activity-order.ts +++ b/dmp-frontend/src/app/core/common/enum/recent-activity-order.ts @@ -2,5 +2,8 @@ export enum RecentActivityOrder { LABEL = "label", CREATED = "created", MODIFIED = "modified", + FINALIZED = "finalizedAt", + PUBLISHED = "publishedAt", + DATASETPUBLISHED = "dmp:publishedAt|join|", STATUS = "status" } diff --git a/dmp-frontend/src/app/core/services/utilities/enum-utils.service.ts b/dmp-frontend/src/app/core/services/utilities/enum-utils.service.ts index 0e7e3d09f..54d821ead 100644 --- a/dmp-frontend/src/app/core/services/utilities/enum-utils.service.ts +++ b/dmp-frontend/src/app/core/services/utilities/enum-utils.service.ts @@ -109,6 +109,9 @@ export class EnumUtils { case RecentActivityOrder.CREATED: return this.language.instant('TYPES.RECENT-ACTIVITY-ORDER.CREATED'); case RecentActivityOrder.LABEL: return this.language.instant('TYPES.RECENT-ACTIVITY-ORDER.LABEL'); case RecentActivityOrder.MODIFIED: return this.language.instant('TYPES.RECENT-ACTIVITY-ORDER.MODIFIED'); + case RecentActivityOrder.FINALIZED: return this.language.instant('TYPES.RECENT-ACTIVITY-ORDER.FINALIZED'); + case RecentActivityOrder.PUBLISHED: return this.language.instant('TYPES.RECENT-ACTIVITY-ORDER.PUBLISHED'); + case RecentActivityOrder.DATASETPUBLISHED: return this.language.instant('TYPES.RECENT-ACTIVITY-ORDER.PUBLISHED'); case RecentActivityOrder.STATUS: return this.language.instant('TYPES.RECENT-ACTIVITY-ORDER.STATUS'); } }