mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
17 lines
356 B
TypeScript
17 lines
356 B
TypeScript
import { Component } from '@angular/core';
|
|
import { Router } from '@angular/router';
|
|
|
|
@Component({
|
|
selector: 'my-app',
|
|
templateUrl: './app.component.html',
|
|
styleUrls: [ './app.component.scss' ]
|
|
})
|
|
|
|
export class AppComponent {
|
|
constructor(private router: Router) {}
|
|
|
|
isInAdmin() {
|
|
return this.router.url.indexOf('/admin/') !== -1;
|
|
}
|
|
}
|