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