From 8a653ec198b34a03b97e0860754ed776bda3c846 Mon Sep 17 00:00:00 2001 From: apapachristou Date: Mon, 23 Sep 2019 16:39:13 +0300 Subject: [PATCH] Fixes Dashboard bug on column status. (Issue #164) --- .../recent-edited-activity.component.html | 24 ++++++++++--------- .../recent-edited-activity.component.ts | 16 ++++++------- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/dmp-frontend/src/app/ui/dashboard/recent-edited-activity/recent-edited-activity.component.html b/dmp-frontend/src/app/ui/dashboard/recent-edited-activity/recent-edited-activity.component.html index fbadad74e..d509a1c6e 100644 --- a/dmp-frontend/src/app/ui/dashboard/recent-edited-activity/recent-edited-activity.component.html +++ b/dmp-frontend/src/app/ui/dashboard/recent-edited-activity/recent-edited-activity.component.html @@ -24,30 +24,32 @@ - + {{ activity.label }} -
- {{ dmpProfileDisplay(activity.profile) }} +
+ {{ activity.profile }}
+
--
{{ activity.grant }} - {{roleDisplay(activity.users)}} + {{ roleDisplay(activity.users)}} {{ activity.organisations }} - +
- {{ enumUtils.toDmpStatusString(activity.status) }} + {{'TYPES.DMP-VISIBILITY.PUBLIC' | translate}}
- + {{ enumUtils.toDmpStatusString(activity.status) }} - {{ activity.modifiedTime | date: "shortDate" }} + + {{ enumUtils.toDmpStatusString(activity.status) }} + + {{ activity.modifiedTime | date: "shortDate" }} - diff --git a/dmp-frontend/src/app/ui/dashboard/recent-edited-activity/recent-edited-activity.component.ts b/dmp-frontend/src/app/ui/dashboard/recent-edited-activity/recent-edited-activity.component.ts index 5ff771ebb..7599cb273 100644 --- a/dmp-frontend/src/app/ui/dashboard/recent-edited-activity/recent-edited-activity.component.ts +++ b/dmp-frontend/src/app/ui/dashboard/recent-edited-activity/recent-edited-activity.component.ts @@ -164,14 +164,14 @@ export class RecentEditedActivityComponent extends BaseComponent implements OnIn } } - dmpProfileDisplay(value: any) { - if (value != null) { - return value; - } - else { - return "--"; - } - } + // dmpProfileDisplay(value: any) { + // if (value != null) { + // return value; + // } + // else { + // return "--"; + // } + // } downloadXml(id: string) { this.dmpService.downloadXML(id)