From: Volker Theile Date: Tue, 3 Sep 2019 13:59:30 +0000 (+0200) Subject: mgr/dashboard: Empty datatable rendered before data has been fetched X-Git-Tag: v15.1.0~1668^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=abee10dbbddeacf86e9ae612505bd82e7dd923be;p=ceph-ci.git mgr/dashboard: Empty datatable rendered before data has been fetched Fixes: https://tracker.ceph.com/issues/41615 Signed-off-by: Volker Theile --- 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')); } }