X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fmenu.component.ts;h=6cfc854dde757801c4fe165a0305c56e4edc391b;hb=d1992b93f0f4a4408f803d6320cd26a713e22d5b;hp=594cd996e992f3746f30479aaee8ed595ea36057;hpb=602eb142bebb62f1774d6e17c211eef99ace584b;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/menu.component.ts b/client/src/app/menu.component.ts index 594cd996e..6cfc854dd 100644 --- a/client/src/app/menu.component.ts +++ b/client/src/app/menu.component.ts @@ -1,15 +1,13 @@ -import { Component, EventEmitter, OnInit, Output } from '@angular/core'; -import { Router, ROUTER_DIRECTIVES } from '@angular/router'; +import { Component, OnInit } from '@angular/core'; +import { Router } from '@angular/router'; import { AuthService, AuthStatus } from './shared'; @Component({ selector: 'my-menu', - template: require('./menu.component.html'), - directives: [ ROUTER_DIRECTIVES ] + templateUrl: './menu.component.html' }) export class MenuComponent implements OnInit { - @Output() enteredInAdmin = new EventEmitter(); isLoggedIn: boolean; constructor ( @@ -35,10 +33,6 @@ export class MenuComponent implements OnInit { ); } - enterInAdmin() { - this.enteredInAdmin.emit(true); - } - isUserAdmin() { return this.authService.isAdmin(); }