Fix privacy label display
authorChocobozzz <me@florianbigard.com>
Mon, 8 Apr 2019 07:33:37 +0000 (09:33 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 8 Apr 2019 07:33:37 +0000 (09:33 +0200)
client/src/app/shared/video/abstract-video-list.html
client/src/app/shared/video/abstract-video-list.ts

index d1b761674a4ba2cded6086bc891eb031db0211f0..2686779779bd8e28ef52d6eb8aceb4ed322f9fc0 100644 (file)
@@ -24,7 +24,7 @@
   >
     <my-video-miniature
       *ngFor="let video of videos; trackBy: videoById" [video]="video" [user]="user" [ownerDisplayType]="ownerDisplayType"
-      [displayVideoActions]="displayVideoActions"
+      [displayVideoActions]="displayVideoActions" [displayOptions]="displayOptions"
       (videoBlacklisted)="removeVideoFromArray(video)" (videoRemoved)="removeVideoFromArray(video)"
     >
     </my-video-miniature>
index cf43d429d04790d85ed09a930550ed82aa0e5e92..fa9d38735831cca4cd5ea7d795ef1143cc103be8 100644 (file)
@@ -7,7 +7,7 @@ import { ComponentPagination } from '../rest/component-pagination.model'
 import { VideoSortField } from './sort-field.type'
 import { Video } from './video.model'
 import { ScreenService } from '@app/shared/misc/screen.service'
-import { OwnerDisplayType } from '@app/shared/video/video-miniature.component'
+import { MiniatureDisplayOptions, OwnerDisplayType } from '@app/shared/video/video-miniature.component'
 import { Syndication } from '@app/shared/video/syndication.model'
 import { Notifier, ServerService } from '@app/core'
 import { DisableForReuseHook } from '@app/core/routing/disable-for-reuse-hook'
@@ -34,6 +34,16 @@ export abstract class AbstractVideoList implements OnInit, OnDestroy, DisableFor
 
   disabled = false
 
+  displayOptions: MiniatureDisplayOptions = {
+    date: true,
+    views: true,
+    by: true,
+    privacyLabel: true,
+    privacyText: false,
+    state: false,
+    blacklistInfo: false
+  }
+
   protected abstract notifier: Notifier
   protected abstract authService: AuthService
   protected abstract route: ActivatedRoute