Publish: prevent submit and notify user if file is not fully processed

This commit is contained in:
Alex Liebowitz 2016-11-18 06:48:16 -05:00
parent f6f4d452b0
commit b73399f4e6

View file

@ -38,7 +38,14 @@ var PublishPage = React.createClass({
}
}
if (missingFieldFound) {
let fileProcessing = false;
if (this.state.fileInfo && !this.state.tempFileReady) {
this.refs.file.showAdvice('Your file is still processing.');
this.refs.file.focus();
fileProcessing = true;
}
if (missingFieldFound || fileProcessing) {
this.setState({
submitting: false,
});