aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app.component.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-10-09 14:28:44 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-10-09 14:28:44 +0200
commita685e25ca05f08ad1b3f7fbaccc8744727bd8d27 (patch)
treee50fbc2f260a0017113c4668c3c0f3d2fd76ab87 /client/src/app/app.component.ts
parent2ed6a0aedc2d2f6b1ac2fd9a1ac137772831f713 (diff)
downloadPeerTube-a685e25ca05f08ad1b3f7fbaccc8744727bd8d27.tar.gz
PeerTube-a685e25ca05f08ad1b3f7fbaccc8744727bd8d27.tar.zst
PeerTube-a685e25ca05f08ad1b3f7fbaccc8744727bd8d27.zip
Try to optimize frontend
Diffstat (limited to 'client/src/app/app.component.ts')
-rw-r--r--client/src/app/app.component.ts7
1 files changed, 1 insertions, 6 deletions
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts
index ae86bc96f..82e647c98 100644
--- a/client/src/app/app.component.ts
+++ b/client/src/app/app.component.ts
@@ -2,7 +2,6 @@ import { 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, ConfigService } from './core'
5import { VideoService } from './videos'
6import { UserService } from './shared' 5import { UserService } from './shared'
7 6
8@Component({ 7@Component({
@@ -30,8 +29,7 @@ export class AppComponent implements OnInit {
30 private router: Router, 29 private router: Router,
31 private authService: AuthService, 30 private authService: AuthService,
32 private configService: ConfigService, 31 private configService: ConfigService,
33 private userService: UserService, 32 private userService: UserService
34 private videoService: VideoService
35 ) {} 33 ) {}
36 34
37 ngOnInit () { 35 ngOnInit () {
@@ -43,9 +41,6 @@ export class AppComponent implements OnInit {
43 } 41 }
44 42
45 this.configService.loadConfig() 43 this.configService.loadConfig()
46 this.videoService.loadVideoCategories()
47 this.videoService.loadVideoLicences()
48 this.videoService.loadVideoLanguages()
49 44
50 // Do not display menu on small screens 45 // Do not display menu on small screens
51 if (window.innerWidth < 600) { 46 if (window.innerWidth < 600) {