Add message for when no content is published

Before, it was showing the same message as the Downloaded page
This commit is contained in:
Alex Liebowitz 2016-11-09 06:58:58 -05:00
parent 59b31c1803
commit a642806a8d

View file

@ -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 = {};