aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/admin
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/admin')
-rw-r--r--client/src/app/admin/menu-admin.component.html2
-rw-r--r--client/src/app/admin/menu-admin.component.ts10
2 files changed, 3 insertions, 9 deletions
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 @@
15 <div class="panel-block"> 15 <div class="panel-block">
16 <div id="panel-quit-administration" class="panel-button"> 16 <div id="panel-quit-administration" class="panel-button">
17 <span class="hidden-xs glyphicon glyphicon-cog"></span> 17 <span class="hidden-xs glyphicon glyphicon-cog"></span>
18 <a [routerLink]="['/videos/list']" (click)="quitAdmin()">Quit admin.</a> 18 <a [routerLink]="['/videos/list']">Quit admin.</a>
19 </div> 19 </div>
20 </div> 20 </div>
21</menu> 21</menu>
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 @@
1import { Component, Output, EventEmitter } from '@angular/core'; 1import { Component } from '@angular/core';
2import { ROUTER_DIRECTIVES } from '@angular/router'; 2import { 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})
9export class MenuAdminComponent { 9export class MenuAdminComponent { }
10 @Output() quittedAdmin = new EventEmitter<boolean>();
11
12 quitAdmin() {
13 this.quittedAdmin.emit(true);
14 }
15}