mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-25 11:04:00 +00:00
Actually dispatch playlist actions
This commit is contained in:
parent
d54e981c3e
commit
f3e24e4e97
1 changed files with 12 additions and 11 deletions
|
|
@ -189,18 +189,19 @@ class PlaylistWindow extends React.Component<Props> {
|
|||
|
||||
const mapDispatchToProps = (dispatch: Dispatch): DispatchProps => {
|
||||
return {
|
||||
focusPlaylist: () => ({
|
||||
type: SET_FOCUSED_WINDOW,
|
||||
window: WINDOWS.PLAYLIST
|
||||
}),
|
||||
close: () => closeWindow("playlist"),
|
||||
toggleShade: togglePlaylistShadeMode,
|
||||
toggleVisualizerStyle,
|
||||
scrollUpFourTracks,
|
||||
scrollDownFourTracks,
|
||||
focusPlaylist: () =>
|
||||
dispatch({
|
||||
type: SET_FOCUSED_WINDOW,
|
||||
window: WINDOWS.PLAYLIST
|
||||
}),
|
||||
close: () => dispatch(closeWindow("playlist")),
|
||||
toggleShade: () => dispatch(togglePlaylistShadeMode()),
|
||||
toggleVisualizerStyle: () => dispatch(togglePlaylistShadeMode()),
|
||||
scrollUpFourTracks: () => dispatch(scrollUpFourTracks()),
|
||||
scrollDownFourTracks: () => dispatch(scrollDownFourTracks()),
|
||||
loadFilesFromReferences: (e, startIndex) =>
|
||||
loadFilesFromReferences(e.dataTransfer.files, null, startIndex),
|
||||
scrollVolume
|
||||
dispatch(loadFilesFromReferences(e.dataTransfer.files, null, startIndex)),
|
||||
scrollVolume: e => dispatch(scrollVolume(e))
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue