From: Stephan Müller Date: Thu, 15 Mar 2018 16:34:49 +0000 (+0100) Subject: mgr/dashboard: K-v-table uses autoReload input X-Git-Tag: v13.1.0~174^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=d0d3dfac59dfb9641ff62a8b39ac2204e9eaf075;p=ceph.git mgr/dashboard: K-v-table uses autoReload input The "autoReload" input from the data table can now be used in the key value table as well. Signed-off-by: Stephan Müller --- 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 d0ab74c078636..87bdf07341b21 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 101580f35ef11..de004797ccbc3 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,