Browse Source

code review fixes

pull/5199/head
Attila Cseh 2 days ago
parent
commit
287258eea2
  1. 3
      CHANGELOG.md
  2. 5
      apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.component.ts

3
CHANGELOG.md

@ -24,6 +24,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Improved the language localization for Italian (`it`)
- Improved the language localization for Portuguese (`pt`)
- Improved the language localization for Spanish (`es`)
### Fixed
- Fixed the quantity value in the update activity dialog
## 2.182.0 - 2025-07-16

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

@ -355,6 +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();
if (type === 'ITEM') {
this.activityForm.get('quantity').setValue(1);
}
this.activityForm
.get('searchSymbol')
.removeValidators(Validators.required);

Loading…
Cancel
Save