Browse Source

Feature/support enter to submit create or update transaction dialog form (#913)

* Support enter key press to submit form

* Update changelog
pull/920/head
Thomas Kaul 2 years ago
committed by GitHub
parent
commit
2b63f7e707
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      CHANGELOG.md
  2. 1
      apps/client/src/app/pages/portfolio/transactions/create-or-update-transaction-dialog/create-or-update-transaction-dialog.html

4
CHANGELOG.md

@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased ## Unreleased
### Added
- Supported enter key press to submit the form of the create or edit transaction dialog
### Fixed ### Fixed
- Fixed the date format of the date picker and support manual changes - Fixed the date format of the date picker and support manual changes

1
apps/client/src/app/pages/portfolio/transactions/create-or-update-transaction-dialog/create-or-update-transaction-dialog.html

@ -1,6 +1,7 @@
<form <form
class="d-flex flex-column h-100" class="d-flex flex-column h-100"
[formGroup]="activityForm" [formGroup]="activityForm"
(keyup.enter)="activityForm.valid && onSubmit()"
(ngSubmit)="onSubmit()" (ngSubmit)="onSubmit()"
> >
<h1 *ngIf="data.activity.id" mat-dialog-title i18n>Update activity</h1> <h1 *ngIf="data.activity.id" mat-dialog-title i18n>Update activity</h1>

Loading…
Cancel
Save