From abee10dbbddeacf86e9ae612505bd82e7dd923be Mon Sep 17 00:00:00 2001 From: Volker Theile Date: Tue, 3 Sep 2019 15:59:30 +0200 Subject: [PATCH] mgr/dashboard: Empty datatable rendered before data has been fetched Fixes: https://tracker.ceph.com/issues/41615 Signed-off-by: Volker Theile --- .../frontend/src/app/shared/datatable/table/table.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts index 89d5781bec8..125fb4e8153 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts @@ -325,6 +325,7 @@ export class TableComponent implements AfterContentChecked, OnInit, OnChanges, O if (this.table && this.table.element.clientWidth !== this.currentWidth) { this.currentWidth = this.table.element.clientWidth; this.table.recalculate(); + window.dispatchEvent(new Event('resize')); } }