Browse Source

Set sorting data accessor before sort in tables

pull/8427/head
Thomas Kaul 2 weeks ago
parent
commit
870f432a32
  1. 2
      apps/client/src/app/components/admin-jobs/admin-jobs.component.ts
  2. 2
      apps/client/src/app/components/admin-settings/admin-settings.component.ts
  3. 2
      libs/ui/src/lib/account-balances/account-balances.component.ts

2
apps/client/src/app/components/admin-jobs/admin-jobs.component.ts

@ -202,8 +202,8 @@ export class GfAdminJobsComponent implements OnInit {
.pipe(takeUntilDestroyed(this.destroyRef)) .pipe(takeUntilDestroyed(this.destroyRef))
.subscribe(({ jobs }) => { .subscribe(({ jobs }) => {
this.dataSource = new MatTableDataSource(jobs); this.dataSource = new MatTableDataSource(jobs);
this.dataSource.sort = this.sort();
this.dataSource.sortingDataAccessor = get; this.dataSource.sortingDataAccessor = get;
this.dataSource.sort = this.sort();
this.isLoading = false; this.isLoading = false;

2
apps/client/src/app/components/admin-settings/admin-settings.component.ts

@ -185,8 +185,8 @@ export class GfAdminSettingsComponent implements OnInit {
}); });
this.dataSource = new MatTableDataSource(filteredProviders); this.dataSource = new MatTableDataSource(filteredProviders);
this.dataSource.sort = this.sort;
this.dataSource.sortingDataAccessor = get; this.dataSource.sortingDataAccessor = get;
this.dataSource.sort = this.sort;
const ghostfolioApiKey = settings[ const ghostfolioApiKey = settings[
PROPERTY_API_KEY_GHOSTFOLIO PROPERTY_API_KEY_GHOSTFOLIO

2
libs/ui/src/lib/account-balances/account-balances.component.ts

@ -124,8 +124,8 @@ export class GfAccountBalancesComponent implements OnChanges {
if (this.accountBalances()) { if (this.accountBalances()) {
this.dataSource = new MatTableDataSource(this.accountBalances()); this.dataSource = new MatTableDataSource(this.accountBalances());
this.dataSource.sort = this.sort();
this.dataSource.sortingDataAccessor = get; this.dataSource.sortingDataAccessor = get;
this.dataSource.sort = this.sort();
} }
} }

Loading…
Cancel
Save