From: dpandit Date: Mon, 7 Aug 2023 07:55:34 +0000 (+0530) Subject: mgr/dashboard: exposed the open api documentations to details card X-Git-Tag: v18.2.1~352^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=eb32df2e953af0da53ba951599de70149aff1b07;p=ceph-ci.git 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) --- 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,