diff --git a/react/components/PublishStatus/index.jsx b/react/components/PublishStatus/index.jsx index e20de9d6..669be0cb 100644 --- a/react/components/PublishStatus/index.jsx +++ b/react/components/PublishStatus/index.jsx @@ -5,39 +5,39 @@ import * as publishStates from 'constants/publish_claim_states'; function PublishStatus ({ status, message }) { return ( -
+
{(status === publishStates.LOAD_START) && -
+

File is loading to server

-

{message}

+

{message}

} {(status === publishStates.LOADING) &&
-
+

File is loading to server

-

{message}

+

{message}

} {(status === publishStates.PUBLISHING) && -
+

Upload complete. Your file is now being published on the blockchain...

- -

Curious what magic is happening here? Learn more.

+ +

Curious what magic is happening here? Learn more.

} {(status === publishStates.SUCCESS) && -
+

Your publish is complete! You are being redirected to it now.

-

If you are not automatically redirected, click here.

+

If you are not automatically redirected, click here.

} {(status === publishStates.FAILED) && -
+

Something went wrong...

{message}

-

For help, post the above error text in the #speech channel on the lbry discord

+

For help, post the above error text in the #speech channel on the lbry discord

}
diff --git a/react/containers/PublishForm/view.jsx b/react/containers/PublishForm/view.jsx index 45cf367d..96bcc152 100644 --- a/react/containers/PublishForm/view.jsx +++ b/react/containers/PublishForm/view.jsx @@ -72,7 +72,7 @@ class PublishForm extends React.Component { console.log('publish response:', response); if ((xhr.status === 200) && response.success) { this.props.history.push(`/${response.data.claimId}/${response.data.name}`); - this.props.onPublishStatusChange(publishStates.SUCCESS, response.data.url); + this.props.onFileClear(); } else { this.props.onPublishStatusChange(publishStates.FAILED, response.message); } @@ -119,9 +119,6 @@ class PublishForm extends React.Component { // publish the claim return this.makePublishRequest(this.props.file, metadata); }) - .then(() => { - this.props.onPublishStatusChange('publish request made'); - }) .catch((error) => { this.props.onPublishSubmitError(error.message); });