Merge pull request #181 from lbryio/always-show-cancel

On load screen, always show Cancel link if a previous page is available
This commit is contained in:
Jeremy Kauffman 2017-02-23 09:15:48 -05:00 committed by GitHub
commit 7daeb610a2
2 changed files with 2 additions and 1 deletions

View file

@ -18,6 +18,7 @@ Web UI version numbers should always match the corresponding version of LBRY App
*
### Fixed
* On load screen, always show Cancel link if a previous page is available
* When user hits "Watch," don't check balance if download already started
*
*

View file

@ -34,7 +34,7 @@ var LoadScreen = React.createClass({
<BusyMessage message={this.props.message} />
</h3>
{this.props.isWarning ? <Icon icon="icon-warning" /> : null} <span className={'load-screen__details ' + (this.props.isWarning ? 'load-screen__details--warning' : '')}>{this.props.details}</span>
{this.props.isWarning
{window.history.length > 1
? <div><Link label="Cancel" onClick={this.handleCancelClick} className='load-screen__cancel-link button-text' /></div>
: null}
</div>