]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/dashboard-help/dashboard-help.component.ts
bump version to 18.2.4-pve3
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / core / navigation / dashboard-help / dashboard-help.component.ts
1 import { Component, OnInit } from '@angular/core';
2
3 import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap';
4
5 import { FeedbackComponent } from '~/app/ceph/shared/feedback/feedback.component';
6 import { Icons } from '~/app/shared/enum/icons.enum';
7 import { DocService } from '~/app/shared/services/doc.service';
8 import { ModalService } from '~/app/shared/services/modal.service';
9 import { AboutComponent } from '../about/about.component';
10
11 @Component({
12 selector: 'cd-dashboard-help',
13 templateUrl: './dashboard-help.component.html',
14 styleUrls: ['./dashboard-help.component.scss']
15 })
16 export class DashboardHelpComponent implements OnInit {
17 docsUrl: string;
18 modalRef: NgbModalRef;
19 icons = Icons;
20 bsModalRef: NgbModalRef;
21
22 constructor(private modalService: ModalService, private docService: DocService) {}
23
24 ngOnInit() {
25 this.docService.subscribeOnce('dashboard', (url: string) => {
26 this.docsUrl = url;
27 });
28 }
29
30 openAboutModal() {
31 this.modalRef = this.modalService.show(AboutComponent, null, { size: 'lg' });
32 }
33
34 openFeedbackModal() {
35 this.bsModalRef = this.modalService.show(FeedbackComponent, null, { size: 'lg' });
36 }
37 }