aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-02-11 15:51:16 +0100
committerChocobozzz <me@florianbigard.com>2021-02-11 15:51:16 +0100
commit241609f1943effb731e71f11026898e63384b6e4 (patch)
treea4202bdaa5f6d8c54fbc93e1600b34a5f1442638 /client/src/app/shared
parent20eb3a5be018dc207253a54bac2e971cbf2c25ce (diff)
downloadPeerTube-241609f1943effb731e71f11026898e63384b6e4.tar.gz
PeerTube-241609f1943effb731e71f11026898e63384b6e4.tar.zst
PeerTube-241609f1943effb731e71f11026898e63384b6e4.zip
Fix NSFW policy in my videos list
Diffstat (limited to 'client/src/app/shared')
-rw-r--r--client/src/app/shared/shared-video-miniature/videos-selection.component.html1
-rw-r--r--client/src/app/shared/shared-video-miniature/videos-selection.component.ts3
2 files changed, 3 insertions, 1 deletions
diff --git a/client/src/app/shared/shared-video-miniature/videos-selection.component.html b/client/src/app/shared/shared-video-miniature/videos-selection.component.html
index 5f5593512..8caeaf092 100644
--- a/client/src/app/shared/shared-video-miniature/videos-selection.component.html
+++ b/client/src/app/shared/shared-video-miniature/videos-selection.component.html
@@ -10,6 +10,7 @@
10 <my-video-miniature 10 <my-video-miniature
11 [video]="video" [displayAsRow]="true" [displayOptions]="miniatureDisplayOptions" 11 [video]="video" [displayAsRow]="true" [displayOptions]="miniatureDisplayOptions"
12 [displayVideoActions]="false" [ownerDisplayType]="ownerDisplayType" 12 [displayVideoActions]="false" [ownerDisplayType]="ownerDisplayType"
13 [user]="user"
13 ></my-video-miniature> 14 ></my-video-miniature>
14 15
15 <!-- Display only once --> 16 <!-- Display only once -->
diff --git a/client/src/app/shared/shared-video-miniature/videos-selection.component.ts b/client/src/app/shared/shared-video-miniature/videos-selection.component.ts
index ef59975d4..ca1cf2264 100644
--- a/client/src/app/shared/shared-video-miniature/videos-selection.component.ts
+++ b/client/src/app/shared/shared-video-miniature/videos-selection.component.ts
@@ -13,7 +13,7 @@ import {
13 TemplateRef 13 TemplateRef
14} from '@angular/core' 14} from '@angular/core'
15import { ActivatedRoute, Router } from '@angular/router' 15import { ActivatedRoute, Router } from '@angular/router'
16import { AuthService, ComponentPagination, LocalStorageService, Notifier, ScreenService, ServerService, UserService } from '@app/core' 16import { AuthService, ComponentPagination, LocalStorageService, Notifier, ScreenService, ServerService, User, UserService } from '@app/core'
17import { ResultList, VideoSortField } from '@shared/models' 17import { ResultList, VideoSortField } from '@shared/models'
18import { PeerTubeTemplateDirective, Video } from '../shared-main' 18import { PeerTubeTemplateDirective, Video } from '../shared-main'
19import { AbstractVideoList } from './abstract-video-list' 19import { AbstractVideoList } from './abstract-video-list'
@@ -27,6 +27,7 @@ export type SelectionType = { [ id: number ]: boolean }
27 styleUrls: [ './videos-selection.component.scss' ] 27 styleUrls: [ './videos-selection.component.scss' ]
28}) 28})
29export class VideosSelectionComponent extends AbstractVideoList implements OnInit, OnDestroy, AfterContentInit { 29export class VideosSelectionComponent extends AbstractVideoList implements OnInit, OnDestroy, AfterContentInit {
30 @Input() user: User
30 @Input() pagination: ComponentPagination 31 @Input() pagination: ComponentPagination
31 @Input() titlePage: string 32 @Input() titlePage: string
32 @Input() miniatureDisplayOptions: MiniatureDisplayOptions 33 @Input() miniatureDisplayOptions: MiniatureDisplayOptions