diff options
Diffstat (limited to 'client/src/app/app.component.ts')
-rw-r--r-- | client/src/app/app.component.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index 4e33fae52..3c06b320e 100644 --- a/client/src/app/app.component.ts +++ b/client/src/app/app.component.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import { Component, OnInit, ViewContainerRef } from '@angular/core'; | 1 | 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, ConfigService } from './core'; |
5 | import { VideoService } from './videos'; | 5 | import { VideoService } from './videos'; |
6 | import { UserService } from './shared'; | 6 | import { UserService } from './shared'; |
7 | 7 | ||
@@ -27,6 +27,7 @@ export class AppComponent implements OnInit { | |||
27 | constructor( | 27 | constructor( |
28 | private router: Router, | 28 | private router: Router, |
29 | private authService: AuthService, | 29 | private authService: AuthService, |
30 | private configService: ConfigService, | ||
30 | private userService: UserService, | 31 | private userService: UserService, |
31 | private videoService: VideoService, | 32 | private videoService: VideoService, |
32 | viewContainerRef: ViewContainerRef | 33 | viewContainerRef: ViewContainerRef |
@@ -38,6 +39,7 @@ export class AppComponent implements OnInit { | |||
38 | this.userService.checkTokenValidity(); | 39 | this.userService.checkTokenValidity(); |
39 | } | 40 | } |
40 | 41 | ||
42 | this.configService.loadConfig(); | ||
41 | this.videoService.loadVideoCategories(); | 43 | this.videoService.loadVideoCategories(); |
42 | this.videoService.loadVideoLicences(); | 44 | this.videoService.loadVideoLicences(); |
43 | } | 45 | } |