aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app.component.ts
diff options
context:
space:
mode:
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() {