Fixes bug, cant remove finalized dataset

This commit is contained in:
apapachristou 2020-09-08 18:11:29 +03:00
parent 7300e2fe85
commit e4bef006d3
2 changed files with 6 additions and 1 deletions

View File

@ -84,7 +84,7 @@
<li *ngFor="let dataset of datasets.controls; let i = index" (click)="changeStep(i + stepsBeforeDatasets, dataset)" [ngClass]="{'active-dataset': this.step === i + stepsBeforeDatasets}">
<div class="d-flex flex-direction-row">
<div class="label">{{'DMP-EDITOR.STEPPER.DATASET' | translate}}</div>
<mat-icon class="ml-auto remove-dataset" matTooltip="{{'DMP-EDITOR.ACTIONS.DELETE' | translate}}" (click)="$event.stopPropagation(); removeDataset(dataset.get('id').value, i)">remove_circle_outline</mat-icon>
<mat-icon *ngIf="dataset.get('status').value !== 1" class="ml-auto remove-dataset" matTooltip="{{'DMP-EDITOR.ACTIONS.DELETE' | translate}}" (click)="$event.stopPropagation(); removeDataset(dataset.get('id').value, i)">remove_circle_outline</mat-icon>
</div>
<span *ngIf="dataset.get('status').value === 1" class="finalized-label">
<mat-icon class="status-icon check-icon">check</mat-icon>{{'TYPES.DATASET-STATUS.FINALISED' | translate}}

View File

@ -355,6 +355,11 @@ a:hover {
cursor: auto !important;
}
.add-dataset-btn:hover {
color: #129d99 !important;
border: 1px solid #129d99;
}
.dataset-list {
list-style-type: none;
padding-left: 0px;