From 221d876fa7a9e92a5a6721b68c31d015b325393f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 12 Oct 2021 10:53:26 +0200 Subject: Fix upload can deactivate --- client/src/app/+videos/+video-edit/video-add.component.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'client/src/app') diff --git a/client/src/app/+videos/+video-edit/video-add.component.ts b/client/src/app/+videos/+video-edit/video-add.component.ts index bcb2fc4fa..25203de1b 100644 --- a/client/src/app/+videos/+video-edit/video-add.component.ts +++ b/client/src/app/+videos/+video-edit/video-add.component.ts @@ -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() -- cgit v1.2.3