Browse Source

Bugfix/fix quantity in update activity dialog (#5199)

* Fix quantity in update activity dialog

* Update changelog
pull/5214/head
Attila Cseh 2 days ago
committed by GitHub
parent
commit
6f7e879aca
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 6
      apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.component.ts

1
CHANGELOG.md

@ -31,6 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Fixed the horizontal ellipsis icon in the accounts table component
- Fixed the quantity value in the update activity dialog
- Fixed the static portfolio analysis rule for no accounts: _Account Cluster Risks_ (Current Investment)
- Fixed the static portfolio analysis rule for no accounts: _Account Cluster Risks_ (Single Account)

6
apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.component.ts

@ -355,7 +355,11 @@ export class GfCreateOrUpdateActivityDialog implements OnDestroy {
this.activityForm.get('fee').setValue(0);
this.activityForm.get('name').setValidators(Validators.required);
this.activityForm.get('name').updateValueAndValidity();
this.activityForm.get('quantity').setValue(1);
if (type === 'ITEM') {
this.activityForm.get('quantity').setValue(1);
}
this.activityForm
.get('searchSymbol')
.removeValidators(Validators.required);

Loading…
Cancel
Save