From 09bcd9ffdb93ee3e6440acaf27ce8a306d509bfa Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Fri, 10 Aug 2018 00:50:26 -0400 Subject: [PATCH] feat: add thumbnail loading to list of help errors --- src/renderer/component/publishForm/view.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/renderer/component/publishForm/view.jsx b/src/renderer/component/publishForm/view.jsx index dec69e685..5fa4f9a25 100644 --- a/src/renderer/component/publishForm/view.jsx +++ b/src/renderer/component/publishForm/view.jsx @@ -254,10 +254,11 @@ class PublishForm extends React.PureComponent { editingURI, isStillEditing, filePath, + uploadThumbnailStatus, } = this.props; // If they are editing, they don't need a new file chosen - const formValidLessFile = name && !nameError && title && bid && !bidError && tosAccepted; + const formValidLessFile = name && !nameError && title && bid && !bidError && tosAccepted && !(uploadThumbnailStatus === THUMBNAIL_STATUSES.IN_PROGRESS); return editingURI && !filePath ? isStillEditing && formValidLessFile : formValidLessFile; } @@ -272,6 +273,7 @@ class PublishForm extends React.PureComponent { editingURI, filePath, isStillEditing, + uploadThumbnailStatus, } = this.props; const isFormValid = this.checkIsFormValid(); @@ -286,6 +288,8 @@ class PublishForm extends React.PureComponent { {name && nameError &&
{__('The URL you created is not valid')}
} {!bid &&
{__('A bid amount is required')}
} {!!bid && bidError &&
{bidError}
} + {uploadThumbnailStatus === THUMBNAIL_STATUSES.IN_PROGRESS + &&
{__('Please wait for thumbnail to finish uploading')}
} {!tosAccepted &&
{__('You must agree to the terms of service')}
} {!!editingURI && !isStillEditing &&