aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app.component.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-04-04 21:37:03 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-04-04 21:37:03 +0200
commit92fb909c9b4a92a00b0d0da7629e6fb003de281b (patch)
tree8119c6720d5dec0474983501843f1e699fde150a /client/src/app/app.component.ts
parent1d49e1e27d63db1dfc9a7fd28c9902f488831a89 (diff)
downloadPeerTube-92fb909c9b4a92a00b0d0da7629e6fb003de281b.tar.gz
PeerTube-92fb909c9b4a92a00b0d0da7629e6fb003de281b.tar.zst
PeerTube-92fb909c9b4a92a00b0d0da7629e6fb003de281b.zip
Client: Handle NSFW video
Diffstat (limited to 'client/src/app/app.component.ts')
-rw-r--r--client/src/app/app.component.ts4
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 @@
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 } from './core'; 4import { AuthService, ConfigService } from './core';
5import { VideoService } from './videos'; 5import { VideoService } from './videos';
6import { UserService } from './shared'; 6import { 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 }