X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fpybind%2Fmgr%2Fdashboard%2Ffrontend%2Fsrc%2Fapp%2Fcore%2Fnavigation%2Fdashboard-help%2Fdashboard-help.component.ts;h=1cdaf523ba5851d9d0522d63e0b1ceb0d6f6f68b;hb=adb31ebba1b9f736f0a7e05b9be808af79cfce80;hp=5d212d6cac43b1ca1f20c5615876db635a9db0bd;hpb=8b89984e92223ec320fb4c70589c39f384c86985;p=ceph.git diff --git a/ceph/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.ts b/ceph/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.ts index 5d212d6ca..1cdaf523b 100644 --- a/ceph/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.ts +++ b/ceph/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.ts @@ -3,7 +3,6 @@ import { Component, OnInit, ViewChild } from '@angular/core'; import { BsModalRef, BsModalService } from 'ngx-bootstrap/modal'; import { Icons } from '../../../shared/enum/icons.enum'; -import { AuthStorageService } from '../../../shared/services/auth-storage.service'; import { DocService } from '../../../shared/services/doc.service'; import { AboutComponent } from '../about/about.component'; @@ -19,11 +18,7 @@ export class DashboardHelpComponent implements OnInit { modalRef: BsModalRef; icons = Icons; - constructor( - private modalService: BsModalService, - private authStorageService: AuthStorageService, - private docService: DocService - ) {} + constructor(private modalService: BsModalService, private docService: DocService) {} ngOnInit() { this.docService.subscribeOnce('dashboard', (url: string) => { @@ -37,8 +32,6 @@ export class DashboardHelpComponent implements OnInit { } goToApiDocs() { - const tokenInput = this.docsFormElement.nativeElement.children[0]; - tokenInput.value = this.authStorageService.getToken(); this.docsFormElement.nativeElement.submit(); } }