From beacf6993c93f93bf5ea86665827154eb291d1fd Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 21 Aug 2016 11:27:24 +0200 Subject: Client: simplify simple menu/admin menu displaying logic --- client/src/app/admin/menu-admin.component.html | 2 +- client/src/app/admin/menu-admin.component.ts | 10 ++-------- client/src/app/app.component.html | 7 ++----- client/src/app/app.component.ts | 12 ++++-------- client/src/app/menu.component.html | 2 +- client/src/app/menu.component.ts | 7 +------ 6 files changed, 11 insertions(+), 29 deletions(-) (limited to 'client') diff --git a/client/src/app/admin/menu-admin.component.html b/client/src/app/admin/menu-admin.component.html index 26a3f3492..f821974bd 100644 --- a/client/src/app/admin/menu-admin.component.html +++ b/client/src/app/admin/menu-admin.component.html @@ -15,7 +15,7 @@
diff --git a/client/src/app/admin/menu-admin.component.ts b/client/src/app/admin/menu-admin.component.ts index b23f7409e..788592872 100644 --- a/client/src/app/admin/menu-admin.component.ts +++ b/client/src/app/admin/menu-admin.component.ts @@ -1,4 +1,4 @@ -import { Component, Output, EventEmitter } from '@angular/core'; +import { Component } from '@angular/core'; import { ROUTER_DIRECTIVES } from '@angular/router'; @Component({ @@ -6,10 +6,4 @@ import { ROUTER_DIRECTIVES } from '@angular/router'; template: require('./menu-admin.component.html'), directives: [ ROUTER_DIRECTIVES ] }) -export class MenuAdminComponent { - @Output() quittedAdmin = new EventEmitter(); - - quitAdmin() { - this.quittedAdmin.emit(true); - } -} +export class MenuAdminComponent { } diff --git a/client/src/app/app.component.html b/client/src/app/app.component.html index a7538ee7a..ead491968 100644 --- a/client/src/app/app.component.html +++ b/client/src/app/app.component.html @@ -14,14 +14,11 @@
- - + +
-
-
-