Add message for when no content is published
Before, it was showing the same message as the Downloaded page
This commit is contained in:
parent
59b31c1803
commit
a642806a8d
1 changed files with 8 additions and 4 deletions
|
@ -268,10 +268,14 @@ var MyFilesPage = React.createClass({
|
|||
<BusyMessage message="Loading" />
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
||||
if (!this.state.filesInfo.length) {
|
||||
var content = <span>You haven't downloaded anything from LBRY yet. Go <Link href="/" label="search for your first download" />!</span>;
|
||||
} else if (!this.state.filesInfo.length) {
|
||||
return (
|
||||
<main className="page">
|
||||
{this.props.show == 'downloaded'
|
||||
? <span>You haven't downloaded anything from LBRY yet. Go <Link href="/" label="search for your first download" />!</span>
|
||||
: <span>You haven't published anything to LBRY yet.</span>}
|
||||
</main>
|
||||
);
|
||||
} else {
|
||||
var content = [],
|
||||
seenUris = {};
|
||||
|
|
Loading…
Reference in a new issue