aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/menu.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/menu.component.ts')
-rw-r--r--client/src/app/menu.component.ts7
1 files changed, 1 insertions, 6 deletions
diff --git a/client/src/app/menu.component.ts b/client/src/app/menu.component.ts
index 594cd996e..6b08301df 100644
--- a/client/src/app/menu.component.ts
+++ b/client/src/app/menu.component.ts
@@ -1,4 +1,4 @@
1import { Component, EventEmitter, OnInit, Output } from '@angular/core'; 1import { Component, OnInit } from '@angular/core';
2import { Router, ROUTER_DIRECTIVES } from '@angular/router'; 2import { Router, ROUTER_DIRECTIVES } from '@angular/router';
3 3
4import { AuthService, AuthStatus } from './shared'; 4import { AuthService, AuthStatus } from './shared';
@@ -9,7 +9,6 @@ import { AuthService, AuthStatus } from './shared';
9 directives: [ ROUTER_DIRECTIVES ] 9 directives: [ ROUTER_DIRECTIVES ]
10}) 10})
11export class MenuComponent implements OnInit { 11export class MenuComponent implements OnInit {
12 @Output() enteredInAdmin = new EventEmitter<boolean>();
13 isLoggedIn: boolean; 12 isLoggedIn: boolean;
14 13
15 constructor ( 14 constructor (
@@ -35,10 +34,6 @@ export class MenuComponent implements OnInit {
35 ); 34 );
36 } 35 }
37 36
38 enterInAdmin() {
39 this.enteredInAdmin.emit(true);
40 }
41
42 isUserAdmin() { 37 isUserAdmin() {
43 return this.authService.isAdmin(); 38 return this.authService.isAdmin();
44 } 39 }