From 9dd2c606edf00036439b36ca6906663c72d83681 Mon Sep 17 00:00:00 2001
From: dtziotzios <dtziotzios@cite.gr>
Date: Wed, 13 Mar 2019 17:30:12 +0200
Subject: [PATCH] Fixes disabled functionality on "Save and Finalize" button.

---
 .../ui/dataset/dataset-wizard/dataset-wizard.component.html   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dmp-frontend/src/app/ui/dataset/dataset-wizard/dataset-wizard.component.html b/dmp-frontend/src/app/ui/dataset/dataset-wizard/dataset-wizard.component.html
index 5fc4e84d7..f7e9ceff5 100644
--- a/dmp-frontend/src/app/ui/dataset/dataset-wizard/dataset-wizard.component.html
+++ b/dmp-frontend/src/app/ui/dataset/dataset-wizard/dataset-wizard.component.html
@@ -24,7 +24,7 @@
 		<button mat-raised-button color="primary" *ngIf="datasetWizardModel&&datasetWizardModel?.status != 1 && !viewOnly"
 		 style="margin-top: 15px;margin-bottom: 15px;margin-right: 15px;" (click)="save();" type="button">{{
 			'DATASET-WIZARD.ACTIONS.SAVE' | translate }}</button>
-		<button mat-raised-button color="primary" *ngIf="datasetWizardModel&&datasetWizardModel?.status != 1 && !viewOnly"
+		<button mat-raised-button color="primary" *ngIf="datasetWizardModel&&datasetWizardModel?.status != 1 && !viewOnly" [disabled]="!formGroup.valid"
 		 style="margin-top: 15px;margin-bottom: 15px;margin-right: 15px;" (click)="saveFinalize();" type="button">{{
 			'DATASET-WIZARD.ACTIONS.SAVE-AND-FINALISE' | translate }}</button>
 		<button mat-raised-button color="primary" *ngIf="datasetWizardModel&&datasetWizardModel?.status == 1" style="margin-top: 15px;margin-bottom: 15px;margin-right: 15px;"
@@ -104,4 +104,4 @@
 			</mat-step> -->
 		</mat-horizontal-stepper>
 	</div>
-</div>
\ No newline at end of file
+</div>