diff options
Diffstat (limited to 'client/src/app/shared/video/video-actions-dropdown.component.ts')
-rw-r--r-- | client/src/app/shared/video/video-actions-dropdown.component.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/app/shared/video/video-actions-dropdown.component.ts b/client/src/app/shared/video/video-actions-dropdown.component.ts index 80407098b..afdeab18d 100644 --- a/client/src/app/shared/video/video-actions-dropdown.component.ts +++ b/client/src/app/shared/video/video-actions-dropdown.component.ts | |||
@@ -13,6 +13,7 @@ import { VideoReportComponent } from '@app/shared/video/modals/video-report.comp | |||
13 | import { VideoBlacklistComponent } from '@app/shared/video/modals/video-blacklist.component' | 13 | import { VideoBlacklistComponent } from '@app/shared/video/modals/video-blacklist.component' |
14 | import { VideoBlacklistService } from '@app/shared/video-blacklist' | 14 | import { VideoBlacklistService } from '@app/shared/video-blacklist' |
15 | import { ScreenService } from '@app/shared/misc/screen.service' | 15 | import { ScreenService } from '@app/shared/misc/screen.service' |
16 | import { VideoCaption } from '@shared/models' | ||
16 | 17 | ||
17 | export type VideoActionsDisplayType = { | 18 | export type VideoActionsDisplayType = { |
18 | playlist?: boolean | 19 | playlist?: boolean |
@@ -37,6 +38,7 @@ export class VideoActionsDropdownComponent implements OnChanges { | |||
37 | @ViewChild('videoBlacklistModal', { static: false }) videoBlacklistModal: VideoBlacklistComponent | 38 | @ViewChild('videoBlacklistModal', { static: false }) videoBlacklistModal: VideoBlacklistComponent |
38 | 39 | ||
39 | @Input() video: Video | VideoDetails | 40 | @Input() video: Video | VideoDetails |
41 | @Input() videoCaptions: VideoCaption[] = [] | ||
40 | 42 | ||
41 | @Input() displayOptions: VideoActionsDisplayType = { | 43 | @Input() displayOptions: VideoActionsDisplayType = { |
42 | playlist: false, | 44 | playlist: false, |
@@ -105,7 +107,7 @@ export class VideoActionsDropdownComponent implements OnChanges { | |||
105 | showDownloadModal () { | 107 | showDownloadModal () { |
106 | this.modalOpened.emit() | 108 | this.modalOpened.emit() |
107 | 109 | ||
108 | this.videoDownloadModal.show(this.video as VideoDetails) | 110 | this.videoDownloadModal.show(this.video as VideoDetails, this.videoCaptions) |
109 | } | 111 | } |
110 | 112 | ||
111 | showReportModal () { | 113 | showReportModal () { |