From 9ae017de02bf1350ac2ba968a4b565184334cd62 Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Sun, 30 May 2021 21:07:03 +0200 Subject: [PATCH] Fix sorting --- CHANGELOG.md | 4 ++++ .../accounts-table.component.html | 19 ++++--------------- .../accounts-table.component.ts | 8 +------- .../accounts-table/accounts-table.module.ts | 2 -- .../transactions-table.component.html | 4 +--- 5 files changed, 10 insertions(+), 27 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 @@ - +
- + - + + 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..54e02f08a 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 @@ -9,10 +9,8 @@ import { Output, ViewChild } 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'; @@ -41,11 +39,7 @@ export class AccountsTableComponent implements OnChanges, OnDestroy, OnInit { private unsubscribeSubject = new Subject(); - public constructor( - private dialog: MatDialog, - private route: ActivatedRoute, - private router: Router - ) {} + public constructor() {} public ngOnInit() {} diff --git a/apps/client/src/app/components/accounts-table/accounts-table.module.ts b/apps/client/src/app/components/accounts-table/accounts-table.module.ts index 3855c5175..06d3bf629 100644 --- a/apps/client/src/app/components/accounts-table/accounts-table.module.ts +++ b/apps/client/src/app/components/accounts-table/accounts-table.module.ts @@ -3,7 +3,6 @@ import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; import { MatButtonModule } from '@angular/material/button'; import { MatInputModule } from '@angular/material/input'; import { MatMenuModule } from '@angular/material/menu'; -import { MatSortModule } from '@angular/material/sort'; import { MatTableModule } from '@angular/material/table'; import { RouterModule } from '@angular/router'; import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; @@ -22,7 +21,6 @@ import { AccountsTableComponent } from './accounts-table.component'; MatButtonModule, MatInputModule, MatMenuModule, - MatSortModule, MatTableModule, NgxSkeletonLoaderModule, RouterModule diff --git a/apps/client/src/app/components/transactions-table/transactions-table.component.html b/apps/client/src/app/components/transactions-table/transactions-table.component.html index 4f33485e0..2ee164dc6 100644 --- a/apps/client/src/app/components/transactions-table/transactions-table.component.html +++ b/apps/client/src/app/components/transactions-table/transactions-table.component.html @@ -178,9 +178,7 @@ - +
- Name - Name {{ element.name }} - Platform - Platform
-
TransactionsTransactions {{ element.Order?.length }} - Account - Account