]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/dashboard: exposed the open api documentations to details card
authordpandit <dpandit@li-6f946d4c-287f-11b2-a85c-b0cb07ed936d.ibm.com>
Mon, 7 Aug 2023 07:55:34 +0000 (13:25 +0530)
committercloudbehl <cloudbehl@gmail.com>
Thu, 24 Aug 2023 14:55:16 +0000 (20:25 +0530)
Fixes: https://tracker.ceph.com/issues/62296
Signed-off-by: dpandit <dpandit@li-6f946d4c-287f-11b2-a85c-b0cb07ed936d.ibm.com>
(cherry picked from commit c6857988d25c3aef2979442d848049393f5febb8)

src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.ts

index b3baaf1117f16285772aec37f7c6347811fb3055..bb1080d21f64348aff82a2f07e3e1d10716252bc 100644 (file)
         <dd i18n>{{ detailsCardData.orchestrator || 'Orchestrator is not available' }}</dd>
         <dt>Ceph version</dt>
         <dd>{{ detailsCardData.cephVersion }}</dd>
+        <dt>Cluster API</dt>
+        <dd>
+          <a routerLink="/api-docs"
+             target="_blank">
+            {{ origin }}/api-docs
+            <i class="fa fa-external-link"></i>
+          </a>
+        </dd>
       </dl>
     </cd-card>
 
index 1d60926ffde5e723ef9030bfd538aa820495699a..82b70d4b0d702f812681e079f4a5fac63f138d63 100644 (file)
@@ -72,6 +72,7 @@ export class DashboardV3Component extends PrometheusListHelper implements OnInit
     end: moment().unix(),
     step: 14
   };
+  origin = window.location.origin;
 
   constructor(
     private summaryService: SummaryService,