From eb32df2e953af0da53ba951599de70149aff1b07 Mon Sep 17 00:00:00 2001 From: dpandit Date: Mon, 7 Aug 2023 13:25:34 +0530 Subject: [PATCH] mgr/dashboard: exposed the open api documentations to details card Fixes: https://tracker.ceph.com/issues/62296 Signed-off-by: dpandit (cherry picked from commit c6857988d25c3aef2979442d848049393f5febb8) --- .../dashboard-v3/dashboard/dashboard-v3.component.html | 8 ++++++++ .../ceph/dashboard-v3/dashboard/dashboard-v3.component.ts | 1 + 2 files changed, 9 insertions(+) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.html index b3baaf1117f..bb1080d21f6 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.html @@ -13,6 +13,14 @@
{{ detailsCardData.orchestrator || 'Orchestrator is not available' }}
Ceph version
{{ detailsCardData.cephVersion }}
+
Cluster API
+
+ + {{ origin }}/api-docs + + +
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.ts index 1d60926ffde..82b70d4b0d7 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.ts @@ -72,6 +72,7 @@ export class DashboardV3Component extends PrometheusListHelper implements OnInit end: moment().unix(), step: 14 }; + origin = window.location.origin; constructor( private summaryService: SummaryService, -- 2.39.5