Browse Source
Prevent empty form submission in account dialog (#2428)
* Prevent empty form submission in account dialog
pull/2394/head^2
Anirudh Sudhir
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
12 additions and
3 deletions
-
apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html
|
@ -10,7 +10,11 @@ |
|
|
<div> |
|
|
<div> |
|
|
<mat-form-field appearance="outline" class="w-100"> |
|
|
<mat-form-field appearance="outline" class="w-100"> |
|
|
<mat-label i18n>Name</mat-label> |
|
|
<mat-label i18n>Name</mat-label> |
|
|
<input formControlName="name" matInput /> |
|
|
<input |
|
|
|
|
|
formControlName="name" |
|
|
|
|
|
matInput |
|
|
|
|
|
(keydown.enter)="$event.stopPropagation()" |
|
|
|
|
|
/> |
|
|
</mat-form-field> |
|
|
</mat-form-field> |
|
|
</div> |
|
|
</div> |
|
|
<div> |
|
|
<div> |
|
@ -26,7 +30,12 @@ |
|
|
<div> |
|
|
<div> |
|
|
<mat-form-field appearance="outline" class="w-100"> |
|
|
<mat-form-field appearance="outline" class="w-100"> |
|
|
<mat-label i18n>Cash Balance</mat-label> |
|
|
<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> |
|
|
<span class="ml-2" matTextSuffix>{{ data.account.currency }}</span> |
|
|
</mat-form-field> |
|
|
</mat-form-field> |
|
|
</div> |
|
|
</div> |
|
@ -66,7 +75,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="justify-content-end" mat-dialog-actions> |
|
|
<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 |
|
|
<button |
|
|
color="primary" |
|
|
color="primary" |
|
|
mat-flat-button |
|
|
mat-flat-button |
|
|