From 401e8109fc7080a8ee24be5d322b5efa8be95af5 Mon Sep 17 00:00:00 2001 From: Aashish Sharma Date: Fri, 4 Oct 2024 17:02:55 +0530 Subject: [PATCH] mgr/dashboard: Enable refresh button on Manage Clusters - Clusters List table 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 --- .../multi-cluster-list/multi-cluster-list.component.html | 1 + .../multi-cluster-list/multi-cluster-list.component.ts | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/multi-cluster/multi-cluster-list/multi-cluster-list.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/multi-cluster/multi-cluster-list/multi-cluster-list.component.html index a9961f72ff67c..b05d07fb31b55 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/multi-cluster/multi-cluster-list/multi-cluster-list.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/multi-cluster/multi-cluster-list/multi-cluster-list.component.html @@ -34,6 +34,7 @@ [columns]="columns" columnMode="flex" selectionType="single" + (fetchData)="refresh()" [hasDetails]="true" (setExpandedRow)="setExpandedRow($event)" [maxLimit]="25" diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/multi-cluster/multi-cluster-list/multi-cluster-list.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/multi-cluster/multi-cluster-list/multi-cluster-list.component.ts index 9f05ab668ab5f..78b4c9c1859f7 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/multi-cluster/multi-cluster-list/multi-cluster-list.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/multi-cluster/multi-cluster-list/multi-cluster-list.component.ts @@ -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(); + } } -- 2.39.5