Correctly finish upload before updating video

pull/3039/head
Chocobozzz 2020-08-03 16:16:58 +02:00
parent 9e8929d633
commit c7a53f6121
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 3 additions and 2 deletions

View File

@ -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
}