fix(ui): save play mode for player (#3315)

* fix(ui): save play mode for player - 3019

* redux

* redux
This commit is contained in:
Kendall Garner
2024-09-27 17:13:22 +00:00
committed by GitHub
parent 10a1b5faf8
commit 782cd26b3d
5 changed files with 33 additions and 4 deletions
+6
View File
@@ -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 },
})