From: Aashish Sharma Date: Fri, 4 Oct 2024 11:32:55 +0000 (+0530) Subject: mgr/dashboard: Enable refresh button on Manage Clusters - Clusters List table X-Git-Tag: v20.0.0~897^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=401e8109fc7080a8ee24be5d322b5efa8be95af5;p=ceph.git 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 --- 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 a9961f72ff67..b05d07fb31b5 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 9f05ab668ab5..78b4c9c1859f 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(); + } }