]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: K-v-table uses autoReload input
authorStephan Müller <smueller@suse.com>
Thu, 15 Mar 2018 16:34:49 +0000 (17:34 +0100)
committerStephan Müller <smueller@suse.com>
Fri, 20 Apr 2018 14:11:12 +0000 (16:11 +0200)
The "autoReload" input from the data table can now be used in the key
value table as well.

Signed-off-by: Stephan Müller <smueller@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table-key-value/table-key-value.component.html
src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table-key-value/table-key-value.component.ts

index d0ab74c078636ca7d4b30e1a494758355dc76cdf..87bdf07341b2147ee3d705ac10531c12f5d5a492 100644 (file)
@@ -2,6 +2,7 @@
           [columns]="columns"
           columnMode="flex"
           [toolHeader]="false"
+          [autoReload]="autoReload"
           [header]="false"
           [footer]="false"
           [limit]="0"
index 101580f35ef11b7a158b0625c240ba54cc2fb64e..de004797ccbc3b038b2189a34820ded7c07509cd 100644 (file)
@@ -23,6 +23,7 @@ export class TableKeyValueComponent implements OnInit, OnChanges {
   columns: Array<CdTableColumn> = [];
 
   @Input() data: any;
+  @Input() autoReload: any = 5000;
 
   tableData: {
     key: string,