]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/app.component.ts
Client: use tslib instead of ts-helpers
[github/Chocobozzz/PeerTube.git] / client / src / app / app.component.ts
CommitLineData
3154f382 1import { Component, ViewContainerRef } from '@angular/core';
ab32b0fc 2import { Router } from '@angular/router';
dc8bc31b 3
cdcbc810 4import { MetaService } from 'ng2-meta';
dc8bc31b 5@Component({
3154f382
C
6 selector: 'my-app',
7 templateUrl: './app.component.html',
8 styleUrls: [ './app.component.scss' ]
dc8bc31b
C
9})
10
11export class AppComponent {
7ddd02c9
C
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
3154f382
C
25 constructor(
26 private router: Router,
b58c69a1 27 private metaService: MetaService,
3154f382
C
28 viewContainerRef: ViewContainerRef
29 ) {}
a99593ed 30
beacf699
C
31 isInAdmin() {
32 return this.router.url.indexOf('/admin/') !== -1;
dc8bc31b
C
33 }
34}