From d23ba6e2978f6d87e98506878c59ea8ba5d3f590 Mon Sep 17 00:00:00 2001 From: FlayInAHook Date: Wed, 16 Dec 2020 15:16:27 +0100 Subject: [PATCH] fixed um paginator --- .../admin-data-page/admin-data-page.component.html | 4 ++-- .../admin-data-page/admin-data-page.component.ts | 9 +++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/app/components/admin-data-page/admin-data-page.component.html b/src/app/components/admin-data-page/admin-data-page.component.html index d8166e9..1a5e3b6 100644 --- a/src/app/components/admin-data-page/admin-data-page.component.html +++ b/src/app/components/admin-data-page/admin-data-page.component.html @@ -62,11 +62,11 @@ + > diff --git a/src/app/components/admin-data-page/admin-data-page.component.ts b/src/app/components/admin-data-page/admin-data-page.component.ts index 49f650c..13fb26a 100644 --- a/src/app/components/admin-data-page/admin-data-page.component.ts +++ b/src/app/components/admin-data-page/admin-data-page.component.ts @@ -162,8 +162,13 @@ export class AdminDataPageComponent implements OnInit { } afterLoad(){ - this.dataSource.paginator = this.paginator; - this.dataSource.sort = this.sort; + + setTimeout(() => { + this.dataSource.paginator = this.paginator; + this.dataSource.sort = this.sort; + }, ); + + //this.refreshTable(); } orderData(id: string, start?: "asc" | "desc") {