From c7a53f61212126fcad1b503003804a7468766a7f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 3 Aug 2020 16:16:58 +0200 Subject: Correctly finish upload before updating video --- .../+video-edit/video-add-components/video-upload.component.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'client/src/app') 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 isPublishingButtonDisabled () { return !this.form.valid || this.isUpdatingVideo === true || - this.videoUploaded !== true + this.videoUploaded !== true || + !this.videoUploadedIds.id } updateSecondStep () { - if (this.checkForm() === false) { + if (this.isPublishingButtonDisabled() || !this.checkForm()) { return } -- cgit v1.2.3