From 4b267f2f84de22d59f697c1d93ad622ca671726c Mon Sep 17 00:00:00 2001 From: gpapavgeri Date: Thu, 23 Jul 2020 12:35:08 +0300 Subject: [PATCH] lockStatus check and icon added to all components --- .../ui/dashboard/drafts/drafts.component.html | 4 +++- .../ui/dashboard/drafts/drafts.component.ts | 19 ++++++++++++++++++- .../recent-edited-activity.component.html | 8 ++++++-- .../recent-edited-activity.component.ts | 11 ++++++++++- ...ent-edited-dataset-activity.component.html | 4 +++- ...ecent-edited-dataset-activity.component.ts | 13 ++++++++++++- .../recent-edited-dmp-activity.component.html | 4 +++- .../recent-edited-dmp-activity.component.ts | 13 ++++++++++++- .../dataset-listing-item.component.html | 4 +++- .../dataset-listing-item.component.ts | 1 - .../overview/dataset-overview.component.html | 2 +- .../overview/dataset-overview.component.ts | 5 ++++- .../dmp-listing-item.component.html | 3 ++- .../dmp-listing-item.component.ts | 1 - 14 files changed, 77 insertions(+), 15 deletions(-) diff --git a/dmp-frontend/src/app/ui/dashboard/drafts/drafts.component.html b/dmp-frontend/src/app/ui/dashboard/drafts/drafts.component.html index bc9dd7c0d..9d70216c8 100644 --- a/dmp-frontend/src/app/ui/dashboard/drafts/drafts.component.html +++ b/dmp-frontend/src/app/ui/dashboard/drafts/drafts.component.html @@ -34,6 +34,8 @@ done{{ enumUtils.toDmpStatusString(activity.status) }} create{{ enumUtils.toDmpStatusString(activity.status) }} . + lock_outline{{'DMP-OVERVIEW.LOCKED' | translate}} + . {{'DATASET-LISTING.COLUMNS.GRANT' | translate}}: {{activity.grant}}
@@ -54,7 +56,7 @@ - diff --git a/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.ts b/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.ts index 1b67db843..c7cddea40 100644 --- a/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.ts +++ b/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.ts @@ -60,7 +60,6 @@ export class DmpListingItemComponent extends BaseComponent implements OnInit { this.isDraft = false; this.isFinalized = true; this.isPublished = false; - this.checkLockStatus(this.dmp.id); if (this.dmp.public == true) { this.isPublished = true } } }