]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: fix API docs link 41521/head
authorAvan Thakkar <athakkar@localhost.localdomain>
Wed, 19 May 2021 23:57:29 +0000 (05:27 +0530)
committerAvan Thakkar <athakkar@redhat.com>
Mon, 24 May 2021 20:09:33 +0000 (01:39 +0530)
Fixes: https://tracker.ceph.com/issues/50890
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
(cherry picked from commit e79c9d3f51970fbe275087e92e468205f70e6f12)

 Conflicts:
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
       - Adopt the master branch changes.

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 02c7ad9c827071f55c15d9ad3bce783f0a14af5b..daa4ec5ba74c40b4def0466a31e7070f757cc46d 100644 (file)
@@ -1,7 +1,3 @@
-<form #docsForm action="/docs" target="_blank" method="post">
-  <input type="hidden" name="token"/>
-</form>
-
 <div dropdown>
   <a dropdownToggle
      class="dropdown-toggle"
@@ -25,7 +21,8 @@
     <li>
       <a i18n
          class="dropdown-item"
-         (click)="goToApiDocs()">API</a>
+         href="/docs"
+         target="_blank">API</a>
     </li>
     <li>
       <a i18n
index 366522c3883269ba2ea0e524020a43ad629d57f4..0774e86ea3daa35161c89e6371c909b4832259dc 100644 (file)
@@ -1,4 +1,4 @@
-import { Component, OnInit, ViewChild } from '@angular/core';
+import { Component, OnInit } from '@angular/core';
 
 import { BsModalRef, BsModalService } from 'ngx-bootstrap/modal';
 
@@ -12,8 +12,6 @@ import { AboutComponent } from '../about/about.component';
   styleUrls: ['./dashboard-help.component.scss']
 })
 export class DashboardHelpComponent implements OnInit {
-  @ViewChild('docsForm')
-  docsFormElement;
   docsUrl: string;
   modalRef: BsModalRef;
 
@@ -41,8 +39,4 @@ export class DashboardHelpComponent implements OnInit {
   openAboutModal() {
     this.modalRef = this.modalService.show(AboutComponent);
   }
-
-  goToApiDocs() {
-    this.docsFormElement.nativeElement.submit();
-  }
 }