Clicking on play button next to song title on playlist page was not starting playback when nothing was already playing

このコミットが含まれているのは:
Lucas Verney 2016-09-24 02:43:40 +02:00
コミット 5f6eec6330
4個のファイルの変更10行の追加5行の削除

ファイルの表示

@ -16,8 +16,13 @@ import Playlist from "../components/Playlist";
*/
class PlaylistPage extends Component {
render() {
const actions = this.props.actions;
const playAction = function (id) {
actions.jumpToSong(id);
actions.togglePlaying(true);
};
return (
<Playlist playAction={this.props.actions.jumpToSong} playNextAction={null} flushAction={this.props.actions.stopPlayback} songs={this.props.songsList} currentIndex={this.props.currentIndex} />
<Playlist playAction={playAction} playNextAction={null} flushAction={actions.stopPlayback} songs={this.props.songsList} currentIndex={this.props.currentIndex} />
);
}
}

長すぎる行があるためファイル差分は表示されません

長すぎる行があるためファイル差分は表示されません

長すぎる行があるためファイル差分は表示されません