mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-02 18:25:12 +00:00
do not block play button on cost info
This commit is contained in:
parent
8acccafe19
commit
64bebd9321
1 changed files with 1 additions and 5 deletions
|
@ -47,7 +47,6 @@ class VideoPlayButton extends React.PureComponent {
|
||||||
modal,
|
modal,
|
||||||
closeModal,
|
closeModal,
|
||||||
isLoading,
|
isLoading,
|
||||||
costInfo,
|
|
||||||
fileInfo,
|
fileInfo,
|
||||||
mediaType,
|
mediaType,
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
@ -60,10 +59,7 @@ class VideoPlayButton extends React.PureComponent {
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const disabled =
|
const disabled = isLoading || fileInfo === undefined;
|
||||||
isLoading ||
|
|
||||||
fileInfo === undefined ||
|
|
||||||
(fileInfo === null && (!costInfo || costInfo.cost === undefined));
|
|
||||||
const icon = ["audio", "video"].indexOf(mediaType) !== -1
|
const icon = ["audio", "video"].indexOf(mediaType) !== -1
|
||||||
? "icon-play"
|
? "icon-play"
|
||||||
: "icon-folder-o";
|
: "icon-folder-o";
|
||||||
|
|
Loading…
Add table
Reference in a new issue