]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
64d3f4c38edbe86b0d64af5d0626bceb92cdabe6
[ceph.git] /
1 import { Component } from '@angular/core';
2 import { Router } from '@angular/router';
3
4 import { TooltipConfig } from 'ngx-bootstrap/tooltip';
5
6 import { NotificationService } from '../../../shared/services/notification.service';
7
8 @Component({
9   selector: 'cd-workbench-layout',
10   templateUrl: './workbench-layout.component.html',
11   styleUrls: ['./workbench-layout.component.scss'],
12   providers: [
13     {
14       provide: TooltipConfig,
15       useFactory: (): TooltipConfig =>
16         Object.assign(new TooltipConfig(), {
17           container: 'body'
18         })
19     }
20   ]
21 })
22 export class WorkbenchLayoutComponent {
23   constructor(private router: Router, public notificationService: NotificationService) {}
24
25   isDashboardPage() {
26     return this.router.url === '/dashboard';
27   }
28 }