Verified Commit 221d876f authored by Chocobozzz's avatar Chocobozzz
Browse files

Fix upload can deactivate

parent f7bb2bb5
......@@ -144,6 +144,7 @@ export class VideoAddComponent implements OnInit, CanComponentDeactivate {
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-torrent') return this.videoImportTorrent.canDeactivate()
if (this.secondStepType === 'go-live') return this.videoGoLive.canDeactivate()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment