Merge pull request #987 from miikkatu/master

Enable play button after clicking download
This commit is contained in:
Liam Cardenas 2018-02-05 11:46:56 -08:00 committed by GitHub
commit 12effb9a09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,7 @@ class VideoPlayButton extends React.PureComponent {
}
render() {
const { button, label, isLoading, fileInfo, mediaType } = this.props;
const { button, label, fileInfo, mediaType } = this.props;
/*
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';
return (
<Link
button={button || null}
disabled={disabled}
disabled={fileInfo === undefined}
label={label || ''}
className="video__play-button"
icon={icon}