Browse Source

Bugfix/case insensitive sorting in platform and tag management of admin control panel (#8425)

* Fix case-insensitive sorting in platform and tag management of admin control panel

* Update changelog
main
Thomas Kaul 8 hours ago
committed by GitHub
parent
commit
0414accbdf
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      CHANGELOG.md
  2. 2
      apps/client/src/app/components/admin-platform/admin-platform.component.ts
  3. 3
      apps/client/src/app/components/admin-tag/admin-tag.component.ts

2
CHANGELOG.md

@ -17,6 +17,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Fixed the duplicate data point of today in the chart of the holding detail dialog
- Fixed the case-insensitive sorting in the platform management of the admin control panel
- Fixed the case-insensitive sorting in the tag management of the admin control panel
- Fixed the missing localization of the range label in the paginator
- Fixed the requests of the twitter bot service with dummy credentials

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

@ -167,8 +167,8 @@ export class GfAdminPlatformComponent implements OnInit {
this.dataSource = new MatTableDataSource(platforms);
this.dataSource.paginator = this.paginator();
this.dataSource.sort = this.sort();
this.dataSource.sortingDataAccessor = getLowercase;
this.dataSource.sort = this.sort();
this.dataService.updateInfo();

3
apps/client/src/app/components/admin-tag/admin-tag.component.ts

@ -178,7 +178,6 @@ export class GfAdminTagComponent implements OnInit {
this.dataSource = new MatTableDataSource(this.tags);
this.dataSource.paginator = this.paginator();
this.dataSource.sort = this.sort();
this.dataSource.sortingDataAccessor = (tag, path) => {
if (path === 'name') {
@ -190,6 +189,8 @@ export class GfAdminTagComponent implements OnInit {
return getLowercase(tag, path) as number | string;
};
this.dataSource.sort = this.sort();
this.dataService.updateInfo();
this.isLoading = false;

Loading…
Cancel
Save