Prevent empty form submission in account dialog (#2428)
* Prevent empty form submission in account dialog
This commit is contained in:
parent
25112a450b
commit
02b433eb1e
@ -10,7 +10,11 @@
|
||||
<div>
|
||||
<mat-form-field appearance="outline" class="w-100">
|
||||
<mat-label i18n>Name</mat-label>
|
||||
<input formControlName="name" matInput />
|
||||
<input
|
||||
formControlName="name"
|
||||
matInput
|
||||
(keydown.enter)="$event.stopPropagation()"
|
||||
/>
|
||||
</mat-form-field>
|
||||
</div>
|
||||
<div>
|
||||
@ -26,7 +30,12 @@
|
||||
<div>
|
||||
<mat-form-field appearance="outline" class="w-100">
|
||||
<mat-label i18n>Cash Balance</mat-label>
|
||||
<input formControlName="balance" matInput type="number" />
|
||||
<input
|
||||
formControlName="balance"
|
||||
matInput
|
||||
type="number"
|
||||
(keydown.enter)="$event.stopPropagation()"
|
||||
/>
|
||||
<span class="ml-2" matTextSuffix>{{ data.account.currency }}</span>
|
||||
</mat-form-field>
|
||||
</div>
|
||||
@ -66,7 +75,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="justify-content-end" mat-dialog-actions>
|
||||
<button i18n mat-button (click)="onCancel()">Cancel</button>
|
||||
<button i18n mat-button type="button" (click)="onCancel()">Cancel</button>
|
||||
<button
|
||||
color="primary"
|
||||
mat-flat-button
|
||||
|
Loading…
x
Reference in New Issue
Block a user