mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-12 16:57:39 -05:00
better playlist building
This commit is contained in:
@@ -13,6 +13,7 @@ const initialState = {
|
||||
filterDate: false,
|
||||
filterStarred: false,
|
||||
currentCallId: false,
|
||||
playlist: [],
|
||||
live: false
|
||||
}
|
||||
|
||||
@@ -27,6 +28,11 @@ export const callPlayerSlice = createSlice({
|
||||
state.newestCallTime = action.payload;
|
||||
state.oldestCallTime = action.payload;
|
||||
},
|
||||
setPlaylist: (state, action) => {
|
||||
if (Array.isArray(action.payload )) {
|
||||
state.playlist = action.payload;
|
||||
}
|
||||
},
|
||||
setFilter: (state,action) => {
|
||||
var filter={};
|
||||
state.live = !action.payload.live ? state.live : action.payload.live;
|
||||
|
||||
Reference in New Issue
Block a user