diff options
author | Chocobozzz <me@florianbigard.com> | 2019-04-05 10:52:27 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-05 10:53:09 +0200 |
commit | 3a0fb65c61f80b510bce979a45d59d17948745e8 (patch) | |
tree | c1be0b2158a008fea826835c8d2fd4e8d648bae9 /client/src/app/shared/video/abstract-video-list.ts | |
parent | 693263e936763a851e3c8c020e3739def8bd4eca (diff) | |
download | PeerTube-3a0fb65c61f80b510bce979a45d59d17948745e8.tar.gz PeerTube-3a0fb65c61f80b510bce979a45d59d17948745e8.tar.zst PeerTube-3a0fb65c61f80b510bce979a45d59d17948745e8.zip |
Add video miniature dropdown
Diffstat (limited to 'client/src/app/shared/video/abstract-video-list.ts')
-rw-r--r-- | client/src/app/shared/video/abstract-video-list.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/app/shared/video/abstract-video-list.ts b/client/src/app/shared/video/abstract-video-list.ts index 099650129..cf43d429d 100644 --- a/client/src/app/shared/video/abstract-video-list.ts +++ b/client/src/app/shared/video/abstract-video-list.ts | |||
@@ -26,11 +26,11 @@ export abstract class AbstractVideoList implements OnInit, OnDestroy, DisableFor | |||
26 | syndicationItems: Syndication[] = [] | 26 | syndicationItems: Syndication[] = [] |
27 | 27 | ||
28 | loadOnInit = true | 28 | loadOnInit = true |
29 | marginContent = true | ||
30 | videos: Video[] = [] | 29 | videos: Video[] = [] |
31 | ownerDisplayType: OwnerDisplayType = 'account' | 30 | ownerDisplayType: OwnerDisplayType = 'account' |
32 | displayModerationBlock = false | 31 | displayModerationBlock = false |
33 | titleTooltip: string | 32 | titleTooltip: string |
33 | displayVideoActions = true | ||
34 | 34 | ||
35 | disabled = false | 35 | disabled = false |
36 | 36 | ||
@@ -120,6 +120,10 @@ export abstract class AbstractVideoList implements OnInit, OnDestroy, DisableFor | |||
120 | throw new Error('toggleModerationDisplay is not implemented') | 120 | throw new Error('toggleModerationDisplay is not implemented') |
121 | } | 121 | } |
122 | 122 | ||
123 | removeVideoFromArray (video: Video) { | ||
124 | this.videos = this.videos.filter(v => v.id !== video.id) | ||
125 | } | ||
126 | |||
123 | // On videos hook for children that want to do something | 127 | // On videos hook for children that want to do something |
124 | protected onMoreVideos () { /* empty */ } | 128 | protected onMoreVideos () { /* empty */ } |
125 | 129 | ||