]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/app.component.ts
Client: add more informations to watch video view
[github/Chocobozzz/PeerTube.git] / client / src / app / app.component.ts
1 import { Component } from '@angular/core';
2 import { Router } from '@angular/router';
3
4 @Component({
5 selector: 'my-app',
6 templateUrl: './app.component.html',
7 styleUrls: [ './app.component.scss' ]
8 })
9
10 export class AppComponent {
11 constructor(private router: Router) {}
12
13 isInAdmin() {
14 return this.router.url.indexOf('/admin/') !== -1;
15 }
16 }