Fix upload can deactivate

pull/4626/head
Chocobozzz 2021-10-12 10:53:26 +02:00
parent f7bb2bb5a7
commit 221d876fa7
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 0 deletions

View File

@ -144,6 +144,7 @@ export class VideoAddComponent implements OnInit, CanComponentDeactivate {
} }
canDeactivate (): { canDeactivate: boolean, text?: string} { canDeactivate (): { canDeactivate: boolean, text?: string} {
if (this.secondStepType === 'upload') return this.videoUpload.canDeactivate()
if (this.secondStepType === 'import-url') return this.videoImportUrl.canDeactivate() if (this.secondStepType === 'import-url') return this.videoImportUrl.canDeactivate()
if (this.secondStepType === 'import-torrent') return this.videoImportTorrent.canDeactivate() if (this.secondStepType === 'import-torrent') return this.videoImportTorrent.canDeactivate()
if (this.secondStepType === 'go-live') return this.videoGoLive.canDeactivate() if (this.secondStepType === 'go-live') return this.videoGoLive.canDeactivate()