aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app.component.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-03-22 21:15:55 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-03-22 21:25:24 +0100
commit6e07c3de88791a0b342e0cc319590048117f9c2d (patch)
tree049f88d3f6d3ec0aeea09702a583deb86d6ef78f /client/src/app/app.component.ts
parent2d7653dc8726185615bab66353c4e3fb8fbb5a5f (diff)
downloadPeerTube-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.ts4
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';
2import { Router } from '@angular/router'; 2import { Router } from '@angular/router';
3 3
4import { AuthService } from './core'; 4import { AuthService } from './core';
5import { VideoService } from './videos';
5import { UserService } from './shared'; 6import { 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() {