]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix upload can deactivate
authorChocobozzz <me@florianbigard.com>
Tue, 12 Oct 2021 08:53:26 +0000 (10:53 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 12 Oct 2021 08:53:26 +0000 (10:53 +0200)
client/src/app/+videos/+video-edit/video-add.component.ts

index bcb2fc4fa54a77e2136b53af1d681e6cdc4c1359..25203de1b49c14b4ceb3c2440341486542f78387 100644 (file)
@@ -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()