diff options
author | Chocobozzz <me@florianbigard.com> | 2022-04-05 14:03:52 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2022-04-15 09:49:35 +0200 |
commit | 384ba8b77a8e4805c099f5ea12b41c2ca5776e26 (patch) | |
tree | 6b517033d9265d283677b85e0f57486e0e7fd8cf /client/src/app/shared/shared-video-miniature/video-miniature.component.ts | |
parent | b211106695bb82f6c32e53306081b5262c3d109d (diff) | |
download | PeerTube-384ba8b77a8e4805c099f5ea12b41c2ca5776e26.tar.gz PeerTube-384ba8b77a8e4805c099f5ea12b41c2ca5776e26.tar.zst PeerTube-384ba8b77a8e4805c099f5ea12b41c2ca5776e26.zip |
Support videos stats in client
Diffstat (limited to 'client/src/app/shared/shared-video-miniature/video-miniature.component.ts')
-rw-r--r-- | client/src/app/shared/shared-video-miniature/video-miniature.component.ts | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/client/src/app/shared/shared-video-miniature/video-miniature.component.ts b/client/src/app/shared/shared-video-miniature/video-miniature.component.ts index 7de9fc8e2..42c472579 100644 --- a/client/src/app/shared/shared-video-miniature/video-miniature.component.ts +++ b/client/src/app/shared/shared-video-miniature/video-miniature.component.ts | |||
@@ -49,7 +49,20 @@ export class VideoMiniatureComponent implements OnInit { | |||
49 | state: false, | 49 | state: false, |
50 | blacklistInfo: false | 50 | blacklistInfo: false |
51 | } | 51 | } |
52 | |||
52 | @Input() displayVideoActions = true | 53 | @Input() displayVideoActions = true |
54 | @Input() videoActionsDisplayOptions: VideoActionsDisplayType = { | ||
55 | playlist: true, | ||
56 | download: false, | ||
57 | update: true, | ||
58 | blacklist: true, | ||
59 | delete: true, | ||
60 | report: true, | ||
61 | duplicate: true, | ||
62 | mute: true, | ||
63 | studio: false, | ||
64 | stats: false | ||
65 | } | ||
53 | 66 | ||
54 | @Input() actorImageSize: ActorAvatarSize = '40' | 67 | @Input() actorImageSize: ActorAvatarSize = '40' |
55 | 68 | ||
@@ -62,16 +75,6 @@ export class VideoMiniatureComponent implements OnInit { | |||
62 | @Output() videoRemoved = new EventEmitter() | 75 | @Output() videoRemoved = new EventEmitter() |
63 | @Output() videoAccountMuted = new EventEmitter() | 76 | @Output() videoAccountMuted = new EventEmitter() |
64 | 77 | ||
65 | videoActionsDisplayOptions: VideoActionsDisplayType = { | ||
66 | playlist: true, | ||
67 | download: false, | ||
68 | update: true, | ||
69 | blacklist: true, | ||
70 | delete: true, | ||
71 | report: true, | ||
72 | duplicate: true, | ||
73 | mute: true | ||
74 | } | ||
75 | showActions = false | 78 | showActions = false |
76 | serverConfig: HTMLServerConfig | 79 | serverConfig: HTMLServerConfig |
77 | 80 | ||