Enable play button after clicking download #987
1 changed files with 2 additions and 3 deletions
|
@ -23,7 +23,7 @@ class VideoPlayButton extends React.PureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { button, label, isLoading, fileInfo, mediaType } = this.props;
|
const { button, label, fileInfo, mediaType } = this.props;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
title={
|
title={
|
||||||
|
@ -33,13 +33,12 @@ class VideoPlayButton extends React.PureComponent {
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const disabled = isLoading || fileInfo === undefined;
|
|
||||||
const icon = ['audio', 'video'].indexOf(mediaType) !== -1 ? 'icon-play' : 'icon-folder-o';
|
const icon = ['audio', 'video'].indexOf(mediaType) !== -1 ? 'icon-play' : 'icon-folder-o';
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
button={button || null}
|
button={button || null}
|
||||||
disabled={disabled}
|
disabled={fileInfo === undefined}
|
||||||
label={label || ''}
|
label={label || ''}
|
||||||
className="video__play-button"
|
className="video__play-button"
|
||||||
icon={icon}
|
icon={icon}
|
||||||
|
|
Loading…
Reference in a new issue