Fixed bug that after finalising a DMP, it is still possible to edit it. - (Issue #107)

This commit is contained in:
apapachristou 2019-06-18 13:27:30 +03:00
parent b7c070a939
commit 686ff0d633
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
<div class="col-12 gray-container container-header">
<p (click)="$event.stopImmediatePropagation(); projectClicked(dmp.projectId)">
{{dmp.projectAbbreviation}}</p>
<button mat-icon-button [matMenuTriggerFor]="actionsMenu" class="ml-auto"
<button *ngIf="isDraft" mat-icon-button [matMenuTriggerFor]="actionsMenu" class="ml-auto"
(click)="$event.stopImmediatePropagation();">
<mat-icon class="more-horiz">more_horiz</mat-icon>
</button>

View File

@ -6,7 +6,7 @@
<h4 class="card-title">{{ dmp.label }}</h4>
</div>
<div *ngIf="!isPublic" class="d-flex ml-auto p-2">
<button mat-icon-button [matMenuTriggerFor]="actionsMenu" class="ml-auto more-icon"
<button *ngIf="dmp.status == 0" mat-icon-button [matMenuTriggerFor]="actionsMenu" class="ml-auto more-icon"
(click)="$event.stopImmediatePropagation();">
<mat-icon class="more-horiz">more_horiz</mat-icon>
</button>