diff options
author | Chocobozzz <me@florianbigard.com> | 2019-04-08 09:33:37 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-08 09:33:37 +0200 |
commit | abf325b4f66066885715cb9d6ce482717f3199ec (patch) | |
tree | 1100f81f9deed733e07b9d8e2b4f69703dd20c73 | |
parent | 0a57bbff2141de718aa901bfbdd147468fd624c6 (diff) | |
download | PeerTube-abf325b4f66066885715cb9d6ce482717f3199ec.tar.gz PeerTube-abf325b4f66066885715cb9d6ce482717f3199ec.tar.zst PeerTube-abf325b4f66066885715cb9d6ce482717f3199ec.zip |
Fix privacy label display
-rw-r--r-- | client/src/app/shared/video/abstract-video-list.html | 2 | ||||
-rw-r--r-- | client/src/app/shared/video/abstract-video-list.ts | 12 |
2 files changed, 12 insertions, 2 deletions
diff --git a/client/src/app/shared/video/abstract-video-list.html b/client/src/app/shared/video/abstract-video-list.html index d1b761674..268677977 100644 --- a/client/src/app/shared/video/abstract-video-list.html +++ b/client/src/app/shared/video/abstract-video-list.html | |||
@@ -24,7 +24,7 @@ | |||
24 | > | 24 | > |
25 | <my-video-miniature | 25 | <my-video-miniature |
26 | *ngFor="let video of videos; trackBy: videoById" [video]="video" [user]="user" [ownerDisplayType]="ownerDisplayType" | 26 | *ngFor="let video of videos; trackBy: videoById" [video]="video" [user]="user" [ownerDisplayType]="ownerDisplayType" |
27 | [displayVideoActions]="displayVideoActions" | 27 | [displayVideoActions]="displayVideoActions" [displayOptions]="displayOptions" |
28 | (videoBlacklisted)="removeVideoFromArray(video)" (videoRemoved)="removeVideoFromArray(video)" | 28 | (videoBlacklisted)="removeVideoFromArray(video)" (videoRemoved)="removeVideoFromArray(video)" |
29 | > | 29 | > |
30 | </my-video-miniature> | 30 | </my-video-miniature> |
diff --git a/client/src/app/shared/video/abstract-video-list.ts b/client/src/app/shared/video/abstract-video-list.ts index cf43d429d..fa9d38735 100644 --- a/client/src/app/shared/video/abstract-video-list.ts +++ b/client/src/app/shared/video/abstract-video-list.ts | |||
@@ -7,7 +7,7 @@ import { ComponentPagination } from '../rest/component-pagination.model' | |||
7 | import { VideoSortField } from './sort-field.type' | 7 | import { VideoSortField } from './sort-field.type' |
8 | import { Video } from './video.model' | 8 | import { Video } from './video.model' |
9 | import { ScreenService } from '@app/shared/misc/screen.service' | 9 | import { ScreenService } from '@app/shared/misc/screen.service' |
10 | import { OwnerDisplayType } from '@app/shared/video/video-miniature.component' | 10 | import { MiniatureDisplayOptions, OwnerDisplayType } from '@app/shared/video/video-miniature.component' |
11 | import { Syndication } from '@app/shared/video/syndication.model' | 11 | import { Syndication } from '@app/shared/video/syndication.model' |
12 | import { Notifier, ServerService } from '@app/core' | 12 | import { Notifier, ServerService } from '@app/core' |
13 | import { DisableForReuseHook } from '@app/core/routing/disable-for-reuse-hook' | 13 | import { DisableForReuseHook } from '@app/core/routing/disable-for-reuse-hook' |
@@ -34,6 +34,16 @@ export abstract class AbstractVideoList implements OnInit, OnDestroy, DisableFor | |||
34 | 34 | ||
35 | disabled = false | 35 | disabled = false |
36 | 36 | ||
37 | displayOptions: MiniatureDisplayOptions = { | ||
38 | date: true, | ||
39 | views: true, | ||
40 | by: true, | ||
41 | privacyLabel: true, | ||
42 | privacyText: false, | ||
43 | state: false, | ||
44 | blacklistInfo: false | ||
45 | } | ||
46 | |||
37 | protected abstract notifier: Notifier | 47 | protected abstract notifier: Notifier |
38 | protected abstract authService: AuthService | 48 | protected abstract authService: AuthService |
39 | protected abstract route: ActivatedRoute | 49 | protected abstract route: ActivatedRoute |