Fix help text save button while form is invalid
This commit is contained in:
parent
35c3728d7b
commit
d55b1819de
|
@ -19,8 +19,8 @@
|
||||||
(click)="resetCustom()" [class.uk-disabled]="!myForm.dirty"
|
(click)="resetCustom()" [class.uk-disabled]="!myForm.dirty"
|
||||||
[disabled]="!myForm.dirty || showLoading">Reset
|
[disabled]="!myForm.dirty || showLoading">Reset
|
||||||
</button>
|
</button>
|
||||||
<button class="uk-button uk-button-primary" [class.uk-disabled]="!myForm.dirty || myForm.disabled"
|
<button class="uk-button uk-button-primary" [class.uk-disabled]="myForm.invalid || !myForm.dirty || myForm.disabled"
|
||||||
(click)="saveCustom()" [disabled]="!myForm.dirty || myForm.disabled || showLoading">Save
|
(click)="saveCustom()" [disabled]="myForm.invalid ||!myForm.dirty || myForm.disabled || showLoading">Save
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -19,8 +19,8 @@
|
||||||
(click)="resetCustom()" [class.uk-disabled]="!myForm.dirty"
|
(click)="resetCustom()" [class.uk-disabled]="!myForm.dirty"
|
||||||
[disabled]="!myForm.dirty || showLoading">Reset
|
[disabled]="!myForm.dirty || showLoading">Reset
|
||||||
</button>
|
</button>
|
||||||
<button class="uk-button uk-button-primary" [class.uk-disabled]="!myForm.dirty || myForm.disabled"
|
<button class="uk-button uk-button-primary" [class.uk-disabled]="myForm.invalid || !myForm.dirty || myForm.disabled"
|
||||||
(click)="saveCustom()" [disabled]="!myForm.dirty || myForm.disabled || showLoading">Save
|
(click)="saveCustom()" [disabled]="myForm.invalid || !myForm.dirty || myForm.disabled || showLoading">Save
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue