diff options
author | Chocobozzz <me@florianbigard.com> | 2021-10-12 10:53:26 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-10-12 10:53:26 +0200 |
commit | 221d876fa7a9e92a5a6721b68c31d015b325393f (patch) | |
tree | 3ae5d05a9ea2ee72bdffd275328b1bf3f8d7269f /client/src | |
parent | f7bb2bb5a753b3f1a37301dcff2d58e434ecd3af (diff) | |
download | PeerTube-221d876fa7a9e92a5a6721b68c31d015b325393f.tar.gz PeerTube-221d876fa7a9e92a5a6721b68c31d015b325393f.tar.zst PeerTube-221d876fa7a9e92a5a6721b68c31d015b325393f.zip |
Fix upload can deactivate
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/app/+videos/+video-edit/video-add.component.ts | 1 |
1 files changed, 1 insertions, 0 deletions
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 { | |||
144 | } | 144 | } |
145 | 145 | ||
146 | canDeactivate (): { canDeactivate: boolean, text?: string} { | 146 | canDeactivate (): { canDeactivate: boolean, text?: string} { |
147 | if (this.secondStepType === 'upload') return this.videoUpload.canDeactivate() | ||
147 | if (this.secondStepType === 'import-url') return this.videoImportUrl.canDeactivate() | 148 | if (this.secondStepType === 'import-url') return this.videoImportUrl.canDeactivate() |
148 | if (this.secondStepType === 'import-torrent') return this.videoImportTorrent.canDeactivate() | 149 | if (this.secondStepType === 'import-torrent') return this.videoImportTorrent.canDeactivate() |
149 | if (this.secondStepType === 'go-live') return this.videoGoLive.canDeactivate() | 150 | if (this.secondStepType === 'go-live') return this.videoGoLive.canDeactivate() |