Disabled buttons on new Dmp invalid form

This commit is contained in:
apapachristou 2019-06-04 11:10:48 +03:00
parent 8cd6615b7c
commit 4cb7e57190
1 changed files with 4 additions and 4 deletions

View File

@ -84,7 +84,7 @@
</div>
<div *ngIf="isNew">
<button mat-raised-button color="primary" (click)="cancelCreation()" type="button"
class="lightblue-btn text-uppercase mr-2">
class="text-uppercase mr-2">
{{'DMP-EDITOR.ACTIONS.CANCEL' | translate}}
</button>
</div>
@ -95,12 +95,12 @@
</button>
</div> -->
<div *ngIf="this.formGroup.enabled">
<button mat-raised-button color="primary" type="submit"
class="lightblue-btn text-uppercase mr-2">{{'DMP-EDITOR.ACTIONS.SAVE' | translate}}
<button mat-raised-button color="primary" type="submit" [disabled]="!formGroup.valid" class="text-uppercase mr-2">
{{'DMP-EDITOR.ACTIONS.SAVE' | translate}}
</button>
</div>
<div *ngIf="this.formGroup.enabled">
<button type="button" mat-raised-button color="primary" class="lightblue-btn text-uppercase"
<button type="button" mat-raised-button color="primary" [disabled]="!formGroup.valid" class="text-uppercase mr-2"
(click)="saveAndFinalize()">{{'DMP-EDITOR.ACTIONS.FINALISE' | translate}}
</button>
</div>