{{dmp.label}}
-
{{ roleDisplay(dmp.users) }}
-
.
+
{{ roleDisplay(dmp.users) }}
+
.
public{{'TYPES.DMP-VISIBILITY.PUBLIC' | translate}}
done{{ enumUtils.toDmpStatusString(dmp.status) }}
create{{ enumUtils.toDmpStatusString(dmp.status) }}
@@ -30,9 +30,9 @@
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 c7cddea40..f41c73873 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
@@ -64,6 +64,10 @@ export class DmpListingItemComponent extends BaseComponent implements OnInit {
}
}
+ public isAuthenticated(): boolean {
+ return !(!this.authentication.current());
+ }
+
checkLockStatus(id: string) {
this.lockService.checkLockStatus(id).pipe(takeUntil(this._destroyed))
.subscribe(lockStatus => this.lockStatus = lockStatus);
@@ -130,6 +134,19 @@ export class DmpListingItemComponent extends BaseComponent implements OnInit {
}
}
+ isUserDMPRelated() {
+ const principal: Principal = this.authentication.current();
+ let isRelated: boolean = false;
+ if (this.dmp && principal) {
+ this.dmp.users.forEach(element => {
+ if (element.id === principal.id) {
+ isRelated = true;
+ }
+ })
+ }
+ return isRelated;
+ }
+
cloneClicked(dmp: DmpListingModel) {
this.router.navigate(['/plans/clone/' + dmp.id]);
}
diff --git a/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.html b/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.html
index dfc4e5db0..fb3457e6d 100644
--- a/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.html
+++ b/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.html
@@ -16,8 +16,8 @@
{{ roleDisplayFromList(dmp.users) }}
-
.
-
+
.
+
public
{{'DMP-OVERVIEW.PUBLIC' | translate}}
@@ -100,7 +100,7 @@
-
-
+
{{ 'DMP-LISTING.ACTIONS.DEPOSIT' | translate }}
-