diff options
author | Chocobozzz <me@florianbigard.com> | 2018-10-01 09:04:43 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-10-01 09:04:43 +0200 |
commit | 59c9c5d9bb383cff118c4d8086cf3e3f43774404 (patch) | |
tree | 4d829cabca4d57dec8af02a5e065e4cea2ac131f /client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts | |
parent | 75f1d36218e2f2011845fcbf2e417c4524230668 (diff) | |
download | PeerTube-59c9c5d9bb383cff118c4d8086cf3e3f43774404.tar.gz PeerTube-59c9c5d9bb383cff118c4d8086cf3e3f43774404.tar.zst PeerTube-59c9c5d9bb383cff118c4d8086cf3e3f43774404.zip |
Fix error when clicking on the disabled publish button
Diffstat (limited to 'client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts')
-rw-r--r-- | client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts | 6 |
1 files changed, 6 insertions, 0 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 584441817..941dc5441 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 | |||
@@ -206,6 +206,12 @@ export class VideoUploadComponent extends VideoSend implements OnInit, OnDestroy | |||
206 | ) | 206 | ) |
207 | } | 207 | } |
208 | 208 | ||
209 | isPublishingButtonDisabled () { | ||
210 | return !this.form.valid || | ||
211 | this.isUpdatingVideo === true || | ||
212 | this.videoUploaded !== true | ||
213 | } | ||
214 | |||
209 | updateSecondStep () { | 215 | updateSecondStep () { |
210 | if (this.checkForm() === false) { | 216 | if (this.checkForm() === false) { |
211 | return | 217 | return |