From 09cd853bf2eeeba12c0af645348b8bcc57f2a2ec Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Fri, 16 Sep 2016 11:23:39 -0400 Subject: [PATCH] Make Publish page send user to My Files as soon as file is listed there --- js/page/publish.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/page/publish.js b/js/page/publish.js index 857fc1bb9..acb4f585b 100644 --- a/js/page/publish.js +++ b/js/page/publish.js @@ -86,11 +86,11 @@ var PublishPage = React.createClass({ console.log(publishArgs); lbry.publish(publishArgs, (message) => { - this.handlePublishSuccess(); + this.handlePublishStarted(); this.setState({ submitting: false, }); - }, (error) => { + }, null, (error) => { this.handlePublishError(error); this.setState({ submitting: false, @@ -131,7 +131,7 @@ var PublishPage = React.createClass({ submitting: false, }; }, - handlePublishSuccess: function() { + handlePublishStarted: function() { alert(`Your file ${this.refs.meta_title.getValue()} has been published to LBRY at the address lbry://${this.state.name}!\n\n` + `You will now be taken to your My Files page, where your newly published file will be listed. Your file will take a few minutes to appear for other LBRY users; until then it will be listed as "pending."`); window.location = "?files";