Browse Source

Clean up

pull/129/head
Thomas 4 years ago
parent
commit
da74cba993
  1. 7
      apps/client/src/app/components/accounts-table/accounts-table.component.ts

7
apps/client/src/app/components/accounts-table/accounts-table.component.ts

@ -6,10 +6,8 @@ import {
OnChanges,
OnDestroy,
OnInit,
Output,
ViewChild
Output
} from '@angular/core';
import { MatSort } from '@angular/material/sort';
import { MatTableDataSource } from '@angular/material/table';
import { Account as AccountModel } from '@prisma/client';
import { Subject, Subscription } from 'rxjs';
@ -30,8 +28,6 @@ export class AccountsTableComponent implements OnChanges, OnDestroy, OnInit {
@Output() accountDeleted = new EventEmitter<string>();
@Output() accountToUpdate = new EventEmitter<AccountModel>();
@ViewChild(MatSort) sort: MatSort;
public dataSource: MatTableDataSource<AccountModel> = new MatTableDataSource();
public displayedColumns = [];
public isLoading = true;
@ -54,7 +50,6 @@ export class AccountsTableComponent implements OnChanges, OnDestroy, OnInit {
if (this.accounts) {
this.dataSource = new MatTableDataSource(this.accounts);
this.dataSource.sort = this.sort;
this.isLoading = false;
}

Loading…
Cancel
Save