]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/app.component.ts
Client: try to improve ux for the upload form
[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
b58c69a1 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 {
3154f382
C
12 constructor(
13 private router: Router,
b58c69a1 14 private metaService: MetaService,
3154f382
C
15 viewContainerRef: ViewContainerRef
16 ) {}
a99593ed 17
beacf699
C
18 isInAdmin() {
19 return this.router.url.indexOf('/admin/') !== -1;
dc8bc31b
C
20 }
21}