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

This commit is contained in:
Lucas Verney 2016-09-24 02:43:40 +02:00
父節點 8fffb9f565
當前提交 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} />
);
}
}

檔案差異因為一行或多行太長而無法顯示

檔案差異因為一行或多行太長而無法顯示

檔案差異因為一行或多行太長而無法顯示