fix(ui): save play mode for player (#3315)
* fix(ui): save play mode for player - 3019 * redux * redux
This commit is contained in:
@@ -6,6 +6,7 @@ export const PLAYER_CLEAR_QUEUE = 'PLAYER_CLEAR_QUEUE'
|
||||
export const PLAYER_PLAY_TRACKS = 'PLAYER_PLAY_TRACKS'
|
||||
export const PLAYER_CURRENT = 'PLAYER_CURRENT'
|
||||
export const PLAYER_SET_VOLUME = 'PLAYER_SET_VOLUME'
|
||||
export const PLAYER_SET_MODE = 'PLAYER_SET_MODE'
|
||||
|
||||
export const setTrack = (data) => ({
|
||||
type: PLAYER_SET_TRACK,
|
||||
@@ -89,3 +90,8 @@ export const setVolume = (volume) => ({
|
||||
type: PLAYER_SET_VOLUME,
|
||||
data: { volume },
|
||||
})
|
||||
|
||||
export const setPlayMode = (mode) => ({
|
||||
type: PLAYER_SET_MODE,
|
||||
data: { mode },
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user