Prevent DMP Finalization if there are no finalized Dataset Descriptions (not just a warning)
This commit is contained in:
parent
e26db8e4c4
commit
4e9b804744
|
@ -48,7 +48,7 @@
|
||||||
</div>
|
</div>
|
||||||
</mat-selection-list>
|
</mat-selection-list>
|
||||||
</div>
|
</div>
|
||||||
<mat-error *ngIf="getFinalizedDatasets().length == 0">
|
<mat-error *ngIf="getFinalizedDatasets().length === 0 && outputModel.datasetsToBeFinalized.length === 0">
|
||||||
{{'DMP-FINALISE-DIALOG.VALIDATION.AT-LEAST-ONE-DATASET-FINALISED' | translate}}
|
{{'DMP-FINALISE-DIALOG.VALIDATION.AT-LEAST-ONE-DATASET-FINALISED' | translate}}
|
||||||
</mat-error>
|
</mat-error>
|
||||||
</div>
|
</div>
|
||||||
|
@ -63,7 +63,7 @@
|
||||||
|
|
||||||
<div mat-dialog-actions class="d-flex justify-content-end">
|
<div mat-dialog-actions class="d-flex justify-content-end">
|
||||||
<div class="col-auto">
|
<div class="col-auto">
|
||||||
<button mat-raised-button class="confirm" (click)="onSubmit()">{{ data.confirmButton }}</button>
|
<button mat-raised-button [disabled]="getFinalizedDatasets().length === 0 && outputModel.datasetsToBeFinalized.length === 0" class="confirm" (click)="onSubmit()">{{ data.confirmButton }}</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-auto">
|
<div class="col-auto">
|
||||||
<button mat-raised-button cdkFocusInitial (click)="close()" class="cancel">{{ data.cancelButton }}</button>
|
<button mat-raised-button cdkFocusInitial (click)="close()" class="cancel">{{ data.cancelButton }}</button>
|
||||||
|
|
Loading…
Reference in New Issue