diff options
Diffstat (limited to 'client/src/app/shared/video/modals')
3 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/shared/video/modals/video-blacklist.component.ts b/client/src/app/shared/video/modals/video-blacklist.component.ts index 4e4e8dc50..f0c70a365 100644 --- a/client/src/app/shared/video/modals/video-blacklist.component.ts +++ b/client/src/app/shared/video/modals/video-blacklist.component.ts | |||
@@ -16,7 +16,7 @@ import { FormReactive, VideoBlacklistValidatorsService } from '@app/shared/forms | |||
16 | export class VideoBlacklistComponent extends FormReactive implements OnInit { | 16 | export class VideoBlacklistComponent extends FormReactive implements OnInit { |
17 | @Input() video: VideoDetails = null | 17 | @Input() video: VideoDetails = null |
18 | 18 | ||
19 | @ViewChild('modal') modal: NgbModal | 19 | @ViewChild('modal', { static: true }) modal: NgbModal |
20 | 20 | ||
21 | @Output() videoBlacklisted = new EventEmitter() | 21 | @Output() videoBlacklisted = new EventEmitter() |
22 | 22 | ||
diff --git a/client/src/app/shared/video/modals/video-download.component.ts b/client/src/app/shared/video/modals/video-download.component.ts index 16f3621b4..4022a11e8 100644 --- a/client/src/app/shared/video/modals/video-download.component.ts +++ b/client/src/app/shared/video/modals/video-download.component.ts | |||
@@ -10,7 +10,7 @@ import { Notifier } from '@app/core' | |||
10 | styleUrls: [ './video-download.component.scss' ] | 10 | styleUrls: [ './video-download.component.scss' ] |
11 | }) | 11 | }) |
12 | export class VideoDownloadComponent { | 12 | export class VideoDownloadComponent { |
13 | @ViewChild('modal') modal: ElementRef | 13 | @ViewChild('modal', { static: true }) modal: ElementRef |
14 | 14 | ||
15 | downloadType: 'direct' | 'torrent' = 'torrent' | 15 | downloadType: 'direct' | 'torrent' = 'torrent' |
16 | resolutionId: number | string = -1 | 16 | resolutionId: number | string = -1 |
diff --git a/client/src/app/shared/video/modals/video-report.component.ts b/client/src/app/shared/video/modals/video-report.component.ts index 725dd020f..1d368ff17 100644 --- a/client/src/app/shared/video/modals/video-report.component.ts +++ b/client/src/app/shared/video/modals/video-report.component.ts | |||
@@ -17,7 +17,7 @@ import { VideoAbuseService } from '@app/shared/video-abuse' | |||
17 | export class VideoReportComponent extends FormReactive implements OnInit { | 17 | export class VideoReportComponent extends FormReactive implements OnInit { |
18 | @Input() video: VideoDetails = null | 18 | @Input() video: VideoDetails = null |
19 | 19 | ||
20 | @ViewChild('modal') modal: NgbModal | 20 | @ViewChild('modal', { static: true }) modal: NgbModal |
21 | 21 | ||
22 | error: string = null | 22 | error: string = null |
23 | 23 | ||