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