]> 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)
committerdpandit <dpandit@li-6f946d4c-287f-11b2-a85c-b0cb07ed936d.ibm.com>
Mon, 7 Aug 2023 07:55:34 +0000 (13:25 +0530)
Fixes: https://tracker.ceph.com/issues/62296
Signed-off-by: dpandit <dpandit@li-6f946d4c-287f-11b2-a85c-b0cb07ed936d.ibm.com>
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 61d36c7a2555ed9028996c0b2ca1daa873a8bc2d..3aace282c0476c1f1b3e78729096c72983897be1 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 a682d7e5d8e7210211be1cfe48137069e2666184..63f9e1e8026ec790c51a934599f6541367f5ccbd 100644 (file)
@@ -72,6 +72,7 @@ export class DashboardV3Component extends PrometheusListHelper implements OnInit
     end: moment().unix(),
     step: 12
   };
+  origin = window.location.origin;
 
   constructor(
     private summaryService: SummaryService,