diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-24 16:05:59 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-07-25 11:00:43 +0200 |
commit | f36da21e40104a50acb00132920b835240cebb38 (patch) | |
tree | a513f8a31b3538b9bc6d1d52897d6b2fa04b45ba /client/src/app/shared | |
parent | a353a4d77c2109f3d2412c54850a6534cf3b0b7f (diff) | |
download | PeerTube-f36da21e40104a50acb00132920b835240cebb38.tar.gz PeerTube-f36da21e40104a50acb00132920b835240cebb38.tar.zst PeerTube-f36da21e40104a50acb00132920b835240cebb38.zip |
Update angular
Diffstat (limited to 'client/src/app/shared')
8 files changed, 12 insertions, 12 deletions
diff --git a/client/src/app/shared/confirm/confirm.component.ts b/client/src/app/shared/confirm/confirm.component.ts index 63c163da6..53aed14d7 100644 --- a/client/src/app/shared/confirm/confirm.component.ts +++ b/client/src/app/shared/confirm/confirm.component.ts | |||
@@ -10,7 +10,7 @@ import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap/modal/modal-ref' | |||
10 | styleUrls: [ './confirm.component.scss' ] | 10 | styleUrls: [ './confirm.component.scss' ] |
11 | }) | 11 | }) |
12 | export class ConfirmComponent implements OnInit { | 12 | export class ConfirmComponent implements OnInit { |
13 | @ViewChild('confirmModal') confirmModal: ElementRef | 13 | @ViewChild('confirmModal', { static: true }) confirmModal: ElementRef |
14 | 14 | ||
15 | title = '' | 15 | title = '' |
16 | message = '' | 16 | message = '' |
diff --git a/client/src/app/shared/moderation/user-ban-modal.component.ts b/client/src/app/shared/moderation/user-ban-modal.component.ts index 942765301..cf0e1577a 100644 --- a/client/src/app/shared/moderation/user-ban-modal.component.ts +++ b/client/src/app/shared/moderation/user-ban-modal.component.ts | |||
@@ -14,7 +14,7 @@ import { User } from '../../../../../shared' | |||
14 | styleUrls: [ './user-ban-modal.component.scss' ] | 14 | styleUrls: [ './user-ban-modal.component.scss' ] |
15 | }) | 15 | }) |
16 | export class UserBanModalComponent extends FormReactive implements OnInit { | 16 | export class UserBanModalComponent extends FormReactive implements OnInit { |
17 | @ViewChild('modal') modal: NgbModal | 17 | @ViewChild('modal', { static: true }) modal: NgbModal |
18 | @Output() userBanned = new EventEmitter<User | User[]>() | 18 | @Output() userBanned = new EventEmitter<User | User[]>() |
19 | 19 | ||
20 | private usersToBan: User | User[] | 20 | private usersToBan: User | User[] |
diff --git a/client/src/app/shared/moderation/user-moderation-dropdown.component.ts b/client/src/app/shared/moderation/user-moderation-dropdown.component.ts index 9dd16812b..24f717821 100644 --- a/client/src/app/shared/moderation/user-moderation-dropdown.component.ts +++ b/client/src/app/shared/moderation/user-moderation-dropdown.component.ts | |||
@@ -13,7 +13,7 @@ import { BlocklistService } from '@app/shared/blocklist' | |||
13 | templateUrl: './user-moderation-dropdown.component.html' | 13 | templateUrl: './user-moderation-dropdown.component.html' |
14 | }) | 14 | }) |
15 | export class UserModerationDropdownComponent implements OnChanges { | 15 | export class UserModerationDropdownComponent implements OnChanges { |
16 | @ViewChild('userBanModal') userBanModal: UserBanModalComponent | 16 | @ViewChild('userBanModal', { static: false }) userBanModal: UserBanModalComponent |
17 | 17 | ||
18 | @Input() user: User | 18 | @Input() user: User |
19 | @Input() account: Account | 19 | @Input() account: Account |
diff --git a/client/src/app/shared/video-playlist/video-playlist-element-miniature.component.ts b/client/src/app/shared/video-playlist/video-playlist-element-miniature.component.ts index 57990707a..62cf6536d 100644 --- a/client/src/app/shared/video-playlist/video-playlist-element-miniature.component.ts +++ b/client/src/app/shared/video-playlist/video-playlist-element-miniature.component.ts | |||
@@ -17,7 +17,7 @@ import { secondsToTime } from '../../../assets/player/utils' | |||
17 | changeDetection: ChangeDetectionStrategy.OnPush | 17 | changeDetection: ChangeDetectionStrategy.OnPush |
18 | }) | 18 | }) |
19 | export class VideoPlaylistElementMiniatureComponent { | 19 | export class VideoPlaylistElementMiniatureComponent { |
20 | @ViewChild('moreDropdown') moreDropdown: NgbDropdown | 20 | @ViewChild('moreDropdown', { static: false }) moreDropdown: NgbDropdown |
21 | 21 | ||
22 | @Input() playlist: VideoPlaylist | 22 | @Input() playlist: VideoPlaylist |
23 | @Input() video: Video | 23 | @Input() video: Video |
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 | ||
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 8d4e33697..7f3e25d0a 100644 --- a/client/src/app/shared/video/video-actions-dropdown.component.ts +++ b/client/src/app/shared/video/video-actions-dropdown.component.ts | |||
@@ -29,12 +29,12 @@ export type VideoActionsDisplayType = { | |||
29 | styleUrls: [ './video-actions-dropdown.component.scss' ] | 29 | styleUrls: [ './video-actions-dropdown.component.scss' ] |
30 | }) | 30 | }) |
31 | export class VideoActionsDropdownComponent implements OnChanges { | 31 | export class VideoActionsDropdownComponent implements OnChanges { |
32 | @ViewChild('playlistDropdown') playlistDropdown: NgbDropdown | 32 | @ViewChild('playlistDropdown', { static: false }) playlistDropdown: NgbDropdown |
33 | @ViewChild('playlistAdd') playlistAdd: VideoAddToPlaylistComponent | 33 | @ViewChild('playlistAdd', { static: false }) playlistAdd: VideoAddToPlaylistComponent |
34 | 34 | ||
35 | @ViewChild('videoDownloadModal') videoDownloadModal: VideoDownloadComponent | 35 | @ViewChild('videoDownloadModal', { static: false }) videoDownloadModal: VideoDownloadComponent |
36 | @ViewChild('videoReportModal') videoReportModal: VideoReportComponent | 36 | @ViewChild('videoReportModal', { static: false }) videoReportModal: VideoReportComponent |
37 | @ViewChild('videoBlacklistModal') videoBlacklistModal: VideoBlacklistComponent | 37 | @ViewChild('videoBlacklistModal', { static: false }) videoBlacklistModal: VideoBlacklistComponent |
38 | 38 | ||
39 | @Input() video: Video | VideoDetails | 39 | @Input() video: Video | VideoDetails |
40 | 40 | ||