diff --git a/frontend/src/Call/components/PlaylistBuilder.js b/frontend/src/Call/components/PlaylistBuilder.js index 92771c8..9ccce31 100644 --- a/frontend/src/Call/components/PlaylistBuilder.js +++ b/frontend/src/Call/components/PlaylistBuilder.js @@ -174,7 +174,7 @@ const removeItem = (call) => { /> - + {content} diff --git a/frontend/src/Call/components/PlaylistItem.js b/frontend/src/Call/components/PlaylistItem.js index 61f444f..fdf647b 100644 --- a/frontend/src/Call/components/PlaylistItem.js +++ b/frontend/src/Call/components/PlaylistItem.js @@ -39,7 +39,7 @@ const PlaylistItem = (props) => { const time = new Date(call.time); const callTime = time.toLocaleTimeString(); return ( - props.onClick({ call: call }, e)}> + {call.len} {tgAlpha} {callTime} diff --git a/frontend/src/features/callPlayer/callPlayerSlice.js b/frontend/src/features/callPlayer/callPlayerSlice.js index fa13ce1..3abd213 100644 --- a/frontend/src/features/callPlayer/callPlayerSlice.js +++ b/frontend/src/features/callPlayer/callPlayerSlice.js @@ -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;