1 import { Component, OnInit } from '@angular/core';
3 import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap';
5 import { Icons } from '~/app/shared/enum/icons.enum';
6 import { DocService } from '~/app/shared/services/doc.service';
8 import { AboutComponent } from '../about/about.component';
9 import { ModalCdsService } from '~/app/shared/services/modal-cds.service';
10 import { FeedbackComponent } from '~/app/ceph/shared/feedback/feedback.component';
11 import { ModalService } from '~/app/shared/services/modal.service';
14 selector: 'cd-dashboard-help',
15 templateUrl: './dashboard-help.component.html',
16 styleUrls: ['./dashboard-help.component.scss']
18 export class DashboardHelpComponent implements OnInit {
21 bsModalRef: NgbModalRef;
24 private docService: DocService,
25 private modalCdsService: ModalCdsService,
26 private modalService: ModalService
30 this.docService.subscribeOnce('dashboard', (url: string) => {
36 this.modalCdsService.show(AboutComponent);
40 this.bsModalRef = this.modalService.show(FeedbackComponent, null, { size: 'lg' });