]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Enable refresh button on Manage Clusters - Clusters List table 60114/head
authorAashish Sharma <aasharma@li-e74156cc-2f67-11b2-a85c-e98659a63c5c.ibm.com>
Fri, 4 Oct 2024 11:32:55 +0000 (17:02 +0530)
committerAashish Sharma <aasharma@li-e74156cc-2f67-11b2-a85c-e98659a63c5c.ibm.com>
Mon, 7 Oct 2024 06:23:06 +0000 (11:53 +0530)
Add fetchData() to the clusters list table to refresh the data and
enable refresh button in the table for the same.

Fixes: https://tracker.ceph.com/issues/68386
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/multi-cluster/multi-cluster-list/multi-cluster-list.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/multi-cluster/multi-cluster-list/multi-cluster-list.component.ts

index a9961f72ff67c38184591b3f917fca8a1b8a5cba..b05d07fb31b55379c32286708f71e5a191561c13 100644 (file)
@@ -34,6 +34,7 @@
                     [columns]="columns"
                     columnMode="flex"
                     selectionType="single"
+                    (fetchData)="refresh()"
                     [hasDetails]="true"
                     (setExpandedRow)="setExpandedRow($event)"
                     [maxLimit]="25"
index 9f05ab668ab5fb6390b41bea9fb7c74d5e0a51ec..78b4c9c1859f74ce1f7987a83b16f3343e9c4347 100644 (file)
@@ -273,4 +273,9 @@ export class MultiClusterListComponent extends ListWithDetails implements OnInit
     super.setExpandedRow(expandedRow);
     this.router.navigate(['performance-details'], { relativeTo: this.route });
   }
+
+  refresh() {
+    this.multiClusterService.refresh();
+    this.multiClusterService.refreshTokenStatus();
+  }
 }