]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: fix API docs link 41430/head
authorAvan Thakkar <athakkar@localhost.localdomain>
Wed, 19 May 2021 23:57:29 +0000 (05:27 +0530)
committerAvan Thakkar <athakkar@localhost.localdomain>
Mon, 24 May 2021 09:49:26 +0000 (15:19 +0530)
Fixes: https://tracker.ceph.com/issues/50890
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.html
src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.ts

index 161e1f0c3b067e414a3c3297ce835b58dd733b0e..766645fa7e72880ade27dd6261899c0649a04d28 100644 (file)
@@ -1,11 +1,3 @@
-<form #docsForm
-      action="/docs"
-      target="_blank"
-      method="post">
-  <input type="hidden"
-         name="token" />
-</form>
-
 <div ngbDropdown
      placement="bottom-right">
   <a ngbDropdownToggle
        href="{{ docsUrl }}"
        target="_blank"
        i18n>documentation</a>
-    <button ngbDropdownItem
-            (click)="goToApiDocs()"
-            i18n>API</button>
+    <a ngbDropdownItem
+       href="/docs"
+       target="_blank"
+       i18n>API</a>
     <button ngbDropdownItem
             (click)="openAboutModal()"
             i18n>About</button>
index a76275bbec98c1499fa68b978b89b32979fe1fa3..910a613335b2ec23f7f9611e04d50c6a9bf95c38 100644 (file)
@@ -1,4 +1,4 @@
-import { Component, OnInit, ViewChild } from '@angular/core';
+import { Component, OnInit } from '@angular/core';
 
 import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap';
 
@@ -13,8 +13,6 @@ import { AboutComponent } from '../about/about.component';
   styleUrls: ['./dashboard-help.component.scss']
 })
 export class DashboardHelpComponent implements OnInit {
-  @ViewChild('docsForm', { static: true })
-  docsFormElement: any;
   docsUrl: string;
   modalRef: NgbModalRef;
   icons = Icons;
@@ -30,8 +28,4 @@ export class DashboardHelpComponent implements OnInit {
   openAboutModal() {
     this.modalRef = this.modalService.show(AboutComponent, null, { size: 'lg' });
   }
-
-  goToApiDocs() {
-    this.docsFormElement.nativeElement.submit();
-  }
 }