On load screen, always show Cancel link if a previous page is available

Before, it was only showing if a load attempt timed out, and would show
even if there was no previous page to go back to.
This commit is contained in:
Alex Liebowitz 2017-02-23 03:17:12 -05:00
parent a24c6ed281
commit 2c0b47edf2
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +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
*
*

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>