From d0d3dfac59dfb9641ff62a8b39ac2204e9eaf075 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stephan=20M=C3=BCller?= Date: Thu, 15 Mar 2018 17:34:49 +0100 Subject: [PATCH] mgr/dashboard: K-v-table uses autoReload input MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The "autoReload" input from the data table can now be used in the key value table as well. Signed-off-by: Stephan Müller --- .../datatable/table-key-value/table-key-value.component.html | 1 + .../datatable/table-key-value/table-key-value.component.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table-key-value/table-key-value.component.html b/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table-key-value/table-key-value.component.html index d0ab74c0786..87bdf07341b 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table-key-value/table-key-value.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table-key-value/table-key-value.component.html @@ -2,6 +2,7 @@ [columns]="columns" columnMode="flex" [toolHeader]="false" + [autoReload]="autoReload" [header]="false" [footer]="false" [limit]="0" diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table-key-value/table-key-value.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table-key-value/table-key-value.component.ts index 101580f35ef..de004797ccb 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table-key-value/table-key-value.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table-key-value/table-key-value.component.ts @@ -23,6 +23,7 @@ export class TableKeyValueComponent implements OnInit, OnChanges { columns: Array = []; @Input() data: any; + @Input() autoReload: any = 5000; tableData: { key: string, -- 2.39.5