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.ts10
1 files changed, 7 insertions, 3 deletions
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts
index 82e647c98..68719f73d 100644
--- a/client/src/app/app.component.ts
+++ b/client/src/app/app.component.ts
@@ -1,7 +1,7 @@
1import { Component, OnInit, ViewContainerRef } from '@angular/core' 1import { Component, OnInit, ViewContainerRef } from '@angular/core'
2import { Router } from '@angular/router' 2import { Router } from '@angular/router'
3 3
4import { AuthService, ConfigService } from './core' 4import { AuthService, ServerService } from './core'
5import { UserService } from './shared' 5import { UserService } from './shared'
6 6
7@Component({ 7@Component({
@@ -28,7 +28,7 @@ export class AppComponent implements OnInit {
28 constructor ( 28 constructor (
29 private router: Router, 29 private router: Router,
30 private authService: AuthService, 30 private authService: AuthService,
31 private configService: ConfigService, 31 private serverService: ServerService,
32 private userService: UserService 32 private userService: UserService
33 ) {} 33 ) {}
34 34
@@ -40,7 +40,11 @@ export class AppComponent implements OnInit {
40 this.userService.checkTokenValidity() 40 this.userService.checkTokenValidity()
41 } 41 }
42 42
43 this.configService.loadConfig() 43 // Load custom data from server
44 this.serverService.loadConfig()
45 this.serverService.loadVideoCategories()
46 this.serverService.loadVideoLanguages()
47 this.serverService.loadVideoLicences()
44 48
45 // Do not display menu on small screens 49 // Do not display menu on small screens
46 if (window.innerWidth < 600) { 50 if (window.innerWidth < 600) {