Merge pull request #2460 from lbryio/issue2431-j-paidcontent

checks for downloaded paid content before disabling
This commit is contained in:
Sean Yesmunt 2019-05-02 16:57:09 -05:00 committed by GitHub
commit f00c7430c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 35 deletions

View file

@ -154,7 +154,7 @@ class FileViewer extends React.PureComponent<Props> {
playContent() {
const { play, uri, fileInfo, isDownloading, isLoading, insufficientCredits } = this.props;
if (insufficientCredits) {
if (!fileInfo && insufficientCredits) {
return;
}
@ -255,7 +255,7 @@ class FileViewer extends React.PureComponent<Props> {
const layoverClass = classnames('content__cover', {
'card__media--nsfw': shouldObscureNsfw,
'card__media--disabled': insufficientCredits,
'card__media--disabled': !fileInfo && insufficientCredits,
});
const layoverStyle =

View file

@ -180,7 +180,7 @@ class FilePage extends React.Component<Props> {
<Page notContained className="main--file-page">
<div className="grid-area--content">
<h1 className="media__uri">{uri}</h1>
{insufficientCredits && (
{!fileInfo && insufficientCredits && (
<div className="media__insufficient-credits help--warning">
{__(
'The publisher has chosen to charge LBC to view this content. Your balance is currently to low to view it.'