Merge pull request #2460 from lbryio/issue2431-j-paidcontent
checks for downloaded paid content before disabling
This commit is contained in:
commit
f00c7430c4
2 changed files with 35 additions and 35 deletions
|
@ -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 =
|
||||
|
|
|
@ -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.'
|
||||
|
|
Loading…
Reference in a new issue