Clicking on play button next to song title on playlist page was not starting playback when nothing was already playing
这个提交包含在:
父节点
8fffb9f565
当前提交
5f6eec6330
|
@ -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} />
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
文件差异因一行或多行过长而隐藏
文件差异因一行或多行过长而隐藏
文件差异因一行或多行过长而隐藏
正在加载...
在新工单中引用