Browse Source
Bugfix/fix case-insensitive sorting in benchmark component (#6181)
* Fix case-insensitive sorting by name
* Update changelog
pull/6183/head^2
Thomas Kaul
14 hours ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
9 additions and
3 deletions
-
CHANGELOG.md
-
libs/ui/src/lib/benchmark/benchmark.component.ts
|
|
|
@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
- Fixed the filtering by asset class in the endpoint `GET api/v1/portfolio/holdings` |
|
|
|
- Fixed the case-insensitive sorting in the accounts table component |
|
|
|
- Fixed the case-insensitive sorting in the benchmark component |
|
|
|
|
|
|
|
## 2.228.0 - 2026-01-03 |
|
|
|
|
|
|
|
|
|
|
|
@ -1,5 +1,9 @@ |
|
|
|
import { ConfirmationDialogType } from '@ghostfolio/common/enums'; |
|
|
|
import { getLocale, resolveMarketCondition } from '@ghostfolio/common/helper'; |
|
|
|
import { |
|
|
|
getLocale, |
|
|
|
getLowercase, |
|
|
|
resolveMarketCondition |
|
|
|
} from '@ghostfolio/common/helper'; |
|
|
|
import { |
|
|
|
AssetProfileIdentifier, |
|
|
|
Benchmark, |
|
|
|
@ -28,7 +32,7 @@ import { ActivatedRoute, Router, RouterModule } from '@angular/router'; |
|
|
|
import { IonIcon } from '@ionic/angular/standalone'; |
|
|
|
import { addIcons } from 'ionicons'; |
|
|
|
import { ellipsisHorizontal, trashOutline } from 'ionicons/icons'; |
|
|
|
import { get, isNumber } from 'lodash'; |
|
|
|
import { isNumber } from 'lodash'; |
|
|
|
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; |
|
|
|
import { Subject, takeUntil } from 'rxjs'; |
|
|
|
|
|
|
|
@ -111,8 +115,9 @@ export class GfBenchmarkComponent implements OnChanges, OnDestroy { |
|
|
|
public ngOnChanges() { |
|
|
|
if (this.benchmarks) { |
|
|
|
this.dataSource.data = this.benchmarks; |
|
|
|
this.dataSource.sortingDataAccessor = getLowercase; |
|
|
|
|
|
|
|
this.dataSource.sort = this.sort; |
|
|
|
this.dataSource.sortingDataAccessor = get; |
|
|
|
|
|
|
|
this.isLoading = false; |
|
|
|
} |
|
|
|
|