]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: fix API docs link 41508/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 19:08:10 +0000 (00:38 +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
      - 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 27dda06bc659fee2ee0bceeff9a27655a0af23dc..8460c08ab63bb05438d124b4b906adcefbdbc761 100644 (file)
@@ -1,11 +1,3 @@
-<form #docsForm
-      action="/docs"
-      target="_blank"
-      method="post">
-  <input type="hidden"
-         name="token" />
-</form>
-
 <div class="btn-group"
      dropdown>
   <a dropdownToggle
@@ -29,7 +21,8 @@
     <li>
       <a i18n
          class="dropdown-item"
-         (click)="goToApiDocs()">API</a>
+         href="/docs"
+         target="_blank">API</a>
     </li>
     <li>
       <a i18n
index 1cdaf523ba5851d9d0522d63e0b1ceb0d6f6f68b..016e3954af364db66ea8b3101da059cdb9bd388e 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', { static: true })
-  docsFormElement: any;
   docsUrl: string;
   modalRef: BsModalRef;
   icons = Icons;
@@ -30,8 +28,4 @@ export class DashboardHelpComponent implements OnInit {
     this.modalRef = this.modalService.show(AboutComponent);
     this.modalRef.setClass('modal-lg');
   }
-
-  goToApiDocs() {
-    this.docsFormElement.nativeElement.submit();
-  }
 }