Browse Source
Feature/show loading state on activities type filter change
pull/6677/head
Airthee
2 months ago
No known key found for this signature in database
GPG Key ID: C7EADC5599E355EC
1 changed files with
6 additions and
1 deletions
-
apps/client/src/app/pages/portfolio/activities/activities-page.component.ts
|
|
@ -65,7 +65,7 @@ export class GfActivitiesPageComponent implements OnInit { |
|
|
public routeQueryParams: Subscription; |
|
|
public routeQueryParams: Subscription; |
|
|
public sortColumn = 'date'; |
|
|
public sortColumn = 'date'; |
|
|
public sortDirection: SortDirection = 'desc'; |
|
|
public sortDirection: SortDirection = 'desc'; |
|
|
public totalItems: number; |
|
|
public totalItems: number | undefined; |
|
|
public user: User; |
|
|
public user: User; |
|
|
|
|
|
|
|
|
public constructor( |
|
|
public constructor( |
|
|
@ -135,6 +135,11 @@ export class GfActivitiesPageComponent implements OnInit { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public fetchActivities() { |
|
|
public fetchActivities() { |
|
|
|
|
|
this.dataSource = undefined; |
|
|
|
|
|
this.totalItems = undefined; |
|
|
|
|
|
|
|
|
|
|
|
this.changeDetectorRef.markForCheck(); |
|
|
|
|
|
|
|
|
const dateRange = this.user?.settings?.dateRange; |
|
|
const dateRange = this.user?.settings?.dateRange; |
|
|
|
|
|
|
|
|
const range = this.isCalendarYear(dateRange) ? dateRange : undefined; |
|
|
const range = this.isCalendarYear(dateRange) ? dateRange : undefined; |
|
|
|