Browse Source

Refactoring

pull/6677/head
Thomas Kaul 2 months ago
parent
commit
834554ff09
  1. 4
      CHANGELOG.md
  2. 16
      apps/client/src/app/pages/portfolio/activities/activities-page.component.ts

4
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

16
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();
}
});
}

Loading…
Cancel
Save