diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-03-22 21:15:55 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-03-22 21:25:24 +0100 |
commit | 6e07c3de88791a0b342e0cc319590048117f9c2d (patch) | |
tree | 049f88d3f6d3ec0aeea09702a583deb86d6ef78f /client/src/app/app.component.ts | |
parent | 2d7653dc8726185615bab66353c4e3fb8fbb5a5f (diff) | |
download | PeerTube-6e07c3de88791a0b342e0cc319590048117f9c2d.tar.gz PeerTube-6e07c3de88791a0b342e0cc319590048117f9c2d.tar.zst PeerTube-6e07c3de88791a0b342e0cc319590048117f9c2d.zip |
Add video category support
Diffstat (limited to 'client/src/app/app.component.ts')
-rw-r--r-- | client/src/app/app.component.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index 8b4b4118b..c7310690f 100644 --- a/client/src/app/app.component.ts +++ b/client/src/app/app.component.ts | |||
@@ -2,6 +2,7 @@ import { Component, OnInit, ViewContainerRef } from '@angular/core'; | |||
2 | import { Router } from '@angular/router'; | 2 | import { Router } from '@angular/router'; |
3 | 3 | ||
4 | import { AuthService } from './core'; | 4 | import { AuthService } from './core'; |
5 | import { VideoService } from './videos'; | ||
5 | import { UserService } from './shared'; | 6 | import { UserService } from './shared'; |
6 | 7 | ||
7 | @Component({ | 8 | @Component({ |
@@ -27,6 +28,7 @@ export class AppComponent implements OnInit { | |||
27 | private router: Router, | 28 | private router: Router, |
28 | private authService: AuthService, | 29 | private authService: AuthService, |
29 | private userService: UserService, | 30 | private userService: UserService, |
31 | private videoService: VideoService, | ||
30 | viewContainerRef: ViewContainerRef | 32 | viewContainerRef: ViewContainerRef |
31 | ) {} | 33 | ) {} |
32 | 34 | ||
@@ -35,6 +37,8 @@ export class AppComponent implements OnInit { | |||
35 | // The service will automatically redirect to the login page if the token is not valid anymore | 37 | // The service will automatically redirect to the login page if the token is not valid anymore |
36 | this.userService.checkTokenValidity(); | 38 | this.userService.checkTokenValidity(); |
37 | } | 39 | } |
40 | |||
41 | this.videoService.loadVideoCategories(); | ||
38 | } | 42 | } |
39 | 43 | ||
40 | isInAdmin() { | 44 | isInAdmin() { |