]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts
Make channelName optionnal in tests only and validators
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / +video-edit / video-add-components / video-upload.component.ts
index e46ce65996be70c3fccadbda763f8f531498ffc1..5a18cd78aa42587c27d58bbd7988b466b6fdaf60 100644 (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
     }