diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-08-21 11:27:24 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-08-21 11:27:24 +0200 |
commit | beacf6993c93f93bf5ea86665827154eb291d1fd (patch) | |
tree | 5aa8b69bbf4891c8d34798b052236f0ebfb94963 /client/src/app/admin/menu-admin.component.ts | |
parent | 9aa46b0c7bade696a477626ad7590ffdd281e03c (diff) | |
download | PeerTube-beacf6993c93f93bf5ea86665827154eb291d1fd.tar.gz PeerTube-beacf6993c93f93bf5ea86665827154eb291d1fd.tar.zst PeerTube-beacf6993c93f93bf5ea86665827154eb291d1fd.zip |
Client: simplify simple menu/admin menu displaying logic
Diffstat (limited to 'client/src/app/admin/menu-admin.component.ts')
-rw-r--r-- | client/src/app/admin/menu-admin.component.ts | 10 |
1 files changed, 2 insertions, 8 deletions
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 @@ | |||
1 | import { Component, Output, EventEmitter } from '@angular/core'; | 1 | import { Component } from '@angular/core'; |
2 | import { ROUTER_DIRECTIVES } from '@angular/router'; | 2 | import { ROUTER_DIRECTIVES } from '@angular/router'; |
3 | 3 | ||
4 | @Component({ | 4 | @Component({ |
@@ -6,10 +6,4 @@ import { ROUTER_DIRECTIVES } from '@angular/router'; | |||
6 | template: require('./menu-admin.component.html'), | 6 | template: require('./menu-admin.component.html'), |
7 | directives: [ ROUTER_DIRECTIVES ] | 7 | directives: [ ROUTER_DIRECTIVES ] |
8 | }) | 8 | }) |
9 | export class MenuAdminComponent { | 9 | export class MenuAdminComponent { } |
10 | @Output() quittedAdmin = new EventEmitter<boolean>(); | ||
11 | |||
12 | quitAdmin() { | ||
13 | this.quittedAdmin.emit(true); | ||
14 | } | ||
15 | } | ||