]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/blob
bc9a04ba28bb2151c3d756edeaf03b9aa86f51ff
[ceph.git] /
1 import { Component, OnInit } from '@angular/core';
2
3 import { Icons } from '~/app/shared/enum/icons.enum';
4 import { DocService } from '~/app/shared/services/doc.service';
5
6 import { AboutComponent } from '../about/about.component';
7 import { ModalCdsService } from '~/app/shared/services/modal-cds.service';
8 import { FeedbackComponent } from '~/app/ceph/shared/feedback/feedback.component';
9
10 @Component({
11   selector: 'cd-dashboard-help',
12   templateUrl: './dashboard-help.component.html',
13   styleUrls: ['./dashboard-help.component.scss']
14 })
15 export class DashboardHelpComponent implements OnInit {
16   docsUrl: string;
17   icons = Icons;
18
19   constructor(private docService: DocService, private modalCdsService: ModalCdsService) {}
20
21   ngOnInit() {
22     this.docService.subscribeOnce('dashboard', (url: string) => {
23       this.docsUrl = url;
24     });
25   }
26
27   openAboutModal() {
28     this.modalCdsService.show(AboutComponent);
29   }
30
31   openFeedbackModal() {
32     this.modalCdsService.show(FeedbackComponent);
33   }
34 }