]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/core/layouts/workbench-layout/workbench-layout.component.ts
import 15.2.0 Octopus source
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / core / layouts / workbench-layout / workbench-layout.component.ts
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 }