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,
|
||||
closeModal,
|
||||
isLoading,
|
||||
costInfo,
|
||||
fileInfo,
|
||||
mediaType,
|
||||
} = this.props;
|
||||
|
@ -60,10 +59,7 @@ class VideoPlayButton extends React.PureComponent {
|
|||
}
|
||||
*/
|
||||
|
||||
const disabled =
|
||||
isLoading ||
|
||||
fileInfo === undefined ||
|
||||
(fileInfo === null && (!costInfo || costInfo.cost === undefined));
|
||||
const disabled = isLoading || fileInfo === undefined;
|
||||
const icon = ["audio", "video"].indexOf(mediaType) !== -1
|
||||
? "icon-play"
|
||||
: "icon-folder-o";
|
||||
|
|
Loading…
Reference in a new issue