From dc736d53b4b852a803225d24ee9d7dc011ff642a Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Tue, 1 Jun 2021 21:33:56 +0200 Subject: [PATCH] Fix sorting (#129) * Fix sorting --- CHANGELOG.md | 4 ++++ .../accounts-table.component.html | 19 ++++--------------- .../accounts-table.component.ts | 15 ++------------- .../accounts-table/accounts-table.module.ts | 2 -- .../transactions-table.component.html | 4 +--- 5 files changed, 11 insertions(+), 33 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b27d03ae8..eeda68753 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Respected the data source attribute of the transactions model in the data management for historical data +### Fixed + +- Fixed the sorting in various tables + ## 1.8.0 - 24.05.2021 ### Added diff --git a/apps/client/src/app/components/accounts-table/accounts-table.component.html b/apps/client/src/app/components/accounts-table/accounts-table.component.html index 142bf9c58..e89044f4d 100644 --- a/apps/client/src/app/components/accounts-table/accounts-table.component.html +++ b/apps/client/src/app/components/accounts-table/accounts-table.component.html @@ -1,24 +1,13 @@ -
- Name - | +Name | {{ element.name }} | - Platform - | +Platform |
Transactions |
+ Transactions |
{{ element.Order?.length }}
|
diff --git a/apps/client/src/app/components/accounts-table/accounts-table.component.ts b/apps/client/src/app/components/accounts-table/accounts-table.component.ts
index dbaf0c33c..3a7a592f6 100644
--- a/apps/client/src/app/components/accounts-table/accounts-table.component.ts
+++ b/apps/client/src/app/components/accounts-table/accounts-table.component.ts
@@ -6,13 +6,9 @@ import {
OnChanges,
OnDestroy,
OnInit,
- Output,
- ViewChild
+ Output
} from '@angular/core';
-import { MatDialog } from '@angular/material/dialog';
-import { MatSort } from '@angular/material/sort';
import { MatTableDataSource } from '@angular/material/table';
-import { ActivatedRoute, Router } from '@angular/router';
import { Account as AccountModel } from '@prisma/client';
import { Subject, Subscription } from 'rxjs';
@@ -32,8 +28,6 @@ export class AccountsTableComponent implements OnChanges, OnDestroy, OnInit {
@Output() accountDeleted = new EventEmitter
- Account
- |
+ Account |
| |
---|