mirror of https://github.com/Chocobozzz/PeerTube
Correctly finish upload before updating video
parent
9e8929d633
commit
c7a53f6121
|
@ -221,11 +221,12 @@ export class VideoUploadComponent extends VideoSend implements OnInit, OnDestroy
|
||||||
isPublishingButtonDisabled () {
|
isPublishingButtonDisabled () {
|
||||||
return !this.form.valid ||
|
return !this.form.valid ||
|
||||||
this.isUpdatingVideo === true ||
|
this.isUpdatingVideo === true ||
|
||||||
this.videoUploaded !== true
|
this.videoUploaded !== true ||
|
||||||
|
!this.videoUploadedIds.id
|
||||||
}
|
}
|
||||||
|
|
||||||
updateSecondStep () {
|
updateSecondStep () {
|
||||||
if (this.checkForm() === false) {
|
if (this.isPublishingButtonDisabled() || !this.checkForm()) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue