diff --git a/CHANGELOG.md b/CHANGELOG.md index 67a64fb3e..53461fd8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,10 +11,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added support for filtering by activity type on the activities page (experimental) -### Changed - -- Improved the activities page to show a loading state on activity type filter change (experimental) - ## 2.252.0 - 2026-03-02 ### Added diff --git a/apps/client/src/app/pages/portfolio/activities/activities-page.component.ts b/apps/client/src/app/pages/portfolio/activities/activities-page.component.ts index 61da3daa1..acd6cba10 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 @@ -135,13 +135,11 @@ export class GfActivitiesPageComponent implements OnInit { } public fetchActivities() { + // Reset dataSource and totalItems to show loading state this.dataSource = undefined; this.totalItems = undefined; - this.changeDetectorRef.markForCheck(); - const dateRange = this.user?.settings?.dateRange; - const range = this.isCalendarYear(dateRange) ? dateRange : undefined; this.dataService @@ -205,6 +203,8 @@ export class GfActivitiesPageComponent implements OnInit { .subscribe(); this.fetchActivities(); + + this.changeDetectorRef.markForCheck(); }); } @@ -219,6 +219,8 @@ export class GfActivitiesPageComponent implements OnInit { .subscribe(); this.fetchActivities(); + + this.changeDetectorRef.markForCheck(); }); } @@ -294,6 +296,8 @@ export class GfActivitiesPageComponent implements OnInit { .subscribe(); this.fetchActivities(); + + this.changeDetectorRef.markForCheck(); }); } @@ -321,6 +325,8 @@ export class GfActivitiesPageComponent implements OnInit { .subscribe(); this.fetchActivities(); + + this.changeDetectorRef.markForCheck(); }); } @@ -370,6 +376,8 @@ export class GfActivitiesPageComponent implements OnInit { .subscribe({ next: () => { this.fetchActivities(); + + this.changeDetectorRef.markForCheck(); } }); } @@ -427,6 +435,8 @@ export class GfActivitiesPageComponent implements OnInit { .subscribe(); this.fetchActivities(); + + this.changeDetectorRef.markForCheck(); } }); }