Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Task/set change detection strategy to OnPush in activities page (#7248)
Arjun jaiswal712bd01c7365
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 22406b5b1d..d27847a943 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -15,9 +15,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- Improved the user account deletion flow in the user settings of the user account page- Improved the date formatting of the first activity in the historical market data table of the admin control panel+- Set the change detection strategy to `OnPush` in the activities page- Set the change detection strategy to `OnPush` in the allocations page- Set the change detection strategy to `OnPush` in the analysis page- Set the change detection strategy to `OnPush` in the portfolio holdings page+- Set the change detection strategy to `OnPush` in the activities page- Set the change detection strategy to `OnPush` in the _FIRE_ page- Set the change detection strategy to `OnPush` in the users section of the admin control panel- Renamed the `SymbolProfileOverrides` _Prisma_ data model to `AssetProfileOverrides` while keeping the database table namediff --git a/apps/client/src/app/pages/portfolio/activities/activities-page.component.ts b/apps/client/src/app/pages/portfolio/activities/activities-page.component.tsindex 41ff570c2c..91f4b6210b 100644--- a/apps/client/src/app/pages/portfolio/activities/activities-page.component.ts+++ b/apps/client/src/app/pages/portfolio/activities/activities-page.component.ts@@ -16,6 +16,7 @@ import { GfFabComponent } from '@ghostfolio/ui/fab';import { DataService } from '@ghostfolio/ui/services';import {+ ChangeDetectionStrategy,ChangeDetectorRef,Component,DestroyRef,@@ -38,6 +39,7 @@ import { GfImportActivitiesDialogComponent } from './import-activities-dialog/imimport { ImportActivitiesDialogParams } from './import-activities-dialog/interfaces/interfaces';@Component({+ changeDetection: ChangeDetectionStrategy.OnPush,imports: [GfActivitiesTableComponent,GfFabComponent,@@ -112,6 +114,8 @@ export class GfActivitiesPageComponent implements OnInit {.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((impersonationId) => {this.hasImpersonationId = !!impersonationId;++ this.changeDetectorRef.markForCheck();});this.userService.stateChanged