Client: better confirm box for a beautiful world
[oweals/peertube.git] / client / src / app / app.component.ts
1 import { Component, ViewContainerRef } from '@angular/core';
2 import { Router } from '@angular/router';
3
4 import { MetaService } from 'ng2-meta';
5 @Component({
6   selector: 'my-app',
7   templateUrl: './app.component.html',
8   styleUrls: [ './app.component.scss' ]
9 })
10
11 export class AppComponent {
12   notificationOptions = {
13     timeOut: 3000,
14     lastOnBottom: true,
15     clickToClose: true,
16     maxLength: 0,
17     maxStack: 7,
18     showProgressBar: false,
19     pauseOnHover: false,
20     preventDuplicates: false,
21     preventLastDuplicates: 'visible',
22     rtl: false
23   };
24
25   constructor(
26     private router: Router,
27     private metaService: MetaService,
28     viewContainerRef: ViewContainerRef
29   ) {}
30
31   isInAdmin() {
32     return this.router.url.indexOf('/admin/') !== -1;
33   }
34 }