Browse Source

Feature/simplify user table of admin control panel (#5263)

* Remove index column

* Update changelog
pull/5291/head
Thomas Kaul 2 weeks ago
committed by GitHub
parent
commit
4831f282dd
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 2
      apps/client/src/app/components/admin-users/admin-users.component.ts
  3. 17
      apps/client/src/app/components/admin-users/admin-users.html

1
CHANGELOG.md

@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Improved the _Top 3_ and _Bottom 3_ performers on the analysis page by removing items without performance
- Improved the usability of the toggle component
- Simplified the users table of the admin control panel
- Restructured the response of the portfolio report endpoint (_X-ray_)
- Refreshed the cryptocurrencies list
- Improved the language localization for Catalan (`ca`)

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

@ -101,7 +101,6 @@ export class GfAdminUsersComponent implements OnDestroy, OnInit {
if (this.hasPermissionForSubscription) {
this.displayedColumns = [
'index',
'user',
'country',
'registration',
@ -114,7 +113,6 @@ export class GfAdminUsersComponent implements OnDestroy, OnInit {
];
} else {
this.displayedColumns = [
'index',
'user',
'registration',
'accounts',

17
apps/client/src/app/components/admin-users/admin-users.html

@ -3,23 +3,6 @@
<div class="col">
<div class="overflow-x-auto">
<table class="gf-table" mat-table [dataSource]="dataSource">
<ng-container matColumnDef="index">
<th
*matHeaderCellDef
class="mat-mdc-header-cell px-1 py-2 text-right"
mat-header-cell
>
#
</th>
<td
*matCellDef="let element; let i = index"
class="mat-mdc-cell px-1 py-2 text-right"
mat-cell
>
{{ i + 1 }}
</td>
</ng-container>
<ng-container matColumnDef="user">
<th
*matHeaderCellDef

Loading…
Cancel
Save