aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/video-list
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-10-09 19:12:40 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-10-09 19:12:40 +0200
commitdb7af09bd8e9de57cdda88c2e32387551235b3a4 (patch)
tree8e3cac831be63a2c66e3b6d5e3b22e33492fb726 /client/src/app/videos/video-list
parentbcd1c9e19447a98d605385fab69b5cfa58d0ba4b (diff)
downloadPeerTube-db7af09bd8e9de57cdda88c2e32387551235b3a4.tar.gz
PeerTube-db7af09bd8e9de57cdda88c2e32387551235b3a4.tar.zst
PeerTube-db7af09bd8e9de57cdda88c2e32387551235b3a4.zip
Client: fix loading server configurations
Diffstat (limited to 'client/src/app/videos/video-list')
-rw-r--r--client/src/app/videos/video-list/video-miniature.component.ts15
1 files changed, 2 insertions, 13 deletions
diff --git a/client/src/app/videos/video-list/video-miniature.component.ts b/client/src/app/videos/video-list/video-miniature.component.ts
index 1cfeacf36..8d8b817ee 100644
--- a/client/src/app/videos/video-list/video-miniature.component.ts
+++ b/client/src/app/videos/video-list/video-miniature.component.ts
@@ -1,9 +1,6 @@
1import { Component, Input, Output, EventEmitter } from '@angular/core' 1import { Component, Input } from '@angular/core'
2 2
3import { NotificationsService } from 'angular2-notifications' 3import { SortField, Video } from '../shared'
4
5import { ConfirmService, ConfigService } from '../../core'
6import { SortField, Video, VideoService } from '../shared'
7import { User } from '../../shared' 4import { User } from '../../shared'
8 5
9@Component({ 6@Component({
@@ -11,19 +8,11 @@ import { User } from '../../shared'
11 styleUrls: [ './video-miniature.component.scss' ], 8 styleUrls: [ './video-miniature.component.scss' ],
12 templateUrl: './video-miniature.component.html' 9 templateUrl: './video-miniature.component.html'
13}) 10})
14
15export class VideoMiniatureComponent { 11export class VideoMiniatureComponent {
16 @Input() currentSort: SortField 12 @Input() currentSort: SortField
17 @Input() user: User 13 @Input() user: User
18 @Input() video: Video 14 @Input() video: Video
19 15
20 constructor (
21 private notificationsService: NotificationsService,
22 private confirmService: ConfirmService,
23 private configService: ConfigService,
24 private videoService: VideoService
25 ) {}
26
27 getVideoName () { 16 getVideoName () {
28 if (this.isVideoNSFWForThisUser()) { 17 if (this.isVideoNSFWForThisUser()) {
29 return 'NSFW' 18 return 'NSFW'