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" />
|
<BusyMessage message="Loading" />
|
||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
}
|
} else if (!this.state.filesInfo.length) {
|
||||||
|
return (
|
||||||
if (!this.state.filesInfo.length) {
|
<main className="page">
|
||||||
var content = <span>You haven't downloaded anything from LBRY yet. Go <Link href="/" label="search for your first download" />!</span>;
|
{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 {
|
} else {
|
||||||
var content = [],
|
var content = [],
|
||||||
seenUris = {};
|
seenUris = {};
|
||||||
|
|
Loading…
Add table
Reference in a new issue