From: Avan Thakkar Date: Wed, 19 May 2021 23:57:29 +0000 (+0530) Subject: mgr/dashboard: fix API docs link X-Git-Tag: v17.1.0~1867^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=e79c9d3f51970fbe275087e92e468205f70e6f12;p=ceph-ci.git mgr/dashboard: fix API docs link Fixes: https://tracker.ceph.com/issues/50890 Signed-off-by: Avan Thakkar --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.html b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.html index 161e1f0c3b0..766645fa7e7 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.html @@ -1,11 +1,3 @@ -
- -
-
documentation - + API diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.ts index a76275bbec9..910a613335b 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.ts @@ -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(); - } }