diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-03 16:16:58 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-08-05 16:22:13 +0200 |
commit | c7a53f61212126fcad1b503003804a7468766a7f (patch) | |
tree | 6363c68c617df0951baa7490fd6b25134a6c8280 /client/src/app | |
parent | 9e8929d633a0640158af183f878f9854e8b77065 (diff) | |
download | PeerTube-c7a53f61212126fcad1b503003804a7468766a7f.tar.gz PeerTube-c7a53f61212126fcad1b503003804a7468766a7f.tar.zst PeerTube-c7a53f61212126fcad1b503003804a7468766a7f.zip |
Correctly finish upload before updating video
Diffstat (limited to 'client/src/app')
-rw-r--r-- | client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts b/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts index e46ce6599..5a18cd78a 100644 --- a/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts +++ b/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts | |||
@@ -221,11 +221,12 @@ export class VideoUploadComponent extends VideoSend implements OnInit, OnDestroy | |||
221 | isPublishingButtonDisabled () { | 221 | isPublishingButtonDisabled () { |
222 | return !this.form.valid || | 222 | return !this.form.valid || |
223 | this.isUpdatingVideo === true || | 223 | this.isUpdatingVideo === true || |
224 | this.videoUploaded !== true | 224 | this.videoUploaded !== true || |
225 | !this.videoUploadedIds.id | ||
225 | } | 226 | } |
226 | 227 | ||
227 | updateSecondStep () { | 228 | updateSecondStep () { |
228 | if (this.checkForm() === false) { | 229 | if (this.isPublishingButtonDisabled() || !this.checkForm()) { |
229 | return | 230 | return |
230 | } | 231 | } |
231 | 232 | ||