Merge pull request #3646 from lbryio/fix-showPageAbandonedFlash

show page will not flash abandoned on load
This commit is contained in:
jessopb 2020-02-06 14:42:55 -05:00 committed by GitHub
commit ce955e1454
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -923,5 +923,6 @@
"refreshing the app": "refreshing the app",
"Follower": "Follower",
"%repost_channel_link% reposted": "%repost_channel_link% reposted",
"This channel may have been unpublished.": "This channel may have been unpublished."
"This channel may have been unpublished.": "This channel may have been unpublished.",
"There was an error. Try %refreshing_the_app_link% to fix it. If that doesn't work, try pressing Ctrl+R/Cmd+R.": "There was an error. Try %refreshing_the_app_link% to fix it. If that doesn't work, try pressing Ctrl+R/Cmd+R."
}

View file

@ -84,11 +84,11 @@ function ShowPage(props: Props) {
}
innerContent = (
<Page>
{isResolvingUri && <BusyIndicator message={__('Loading decentralized data...')} />}
{(claim === undefined || isResolvingUri) && <BusyIndicator message={__('Loading decentralized data...')} />}
{!isResolvingUri && !isSubscribed && (
<span className="empty">{__("There's nothing available at this location.")}</span>
)}
{!isResolvingUri && isSubscribed && <AbandonedChannelPreview uri={uri} type={'large'} />}
{!isResolvingUri && isSubscribed && claim === null && <AbandonedChannelPreview uri={uri} type={'large'} />}
</Page>
);
} else if (claim.name.length && claim.name[0] === '@') {