export class VideoImportTorrentComponent extends VideoSend implements OnInit, CanComponentDeactivate {
@Output() firstStepDone = new EventEmitter<string>()
@Output() firstStepError = new EventEmitter<void>()
- @ViewChild('torrentfileInput') torrentfileInput: ElementRef<HTMLInputElement>
+ @ViewChild('torrentfileInput', { static: false }) torrentfileInput: ElementRef<HTMLInputElement>
magnetUri = ''
privacy: this.firstStepPrivacyId,
waitTranscoding: false,
commentsEnabled: true,
+ downloadEnabled: true,
channelId: this.firstStepChannelId
}
this.video = new VideoEdit(Object.assign(res.video, {
commentsEnabled: videoUpdate.commentsEnabled,
+ downloadEnabled: videoUpdate.downloadEnabled,
support: null,
thumbnailUrl: null,
previewUrl: null
}))
- this.videoPrivacies = this.videoService.explainedPrivacyLabels(this.videoPrivacies)
-
this.hydrateFormFromVideo()
},