mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-14 01:37:48 -05:00
better playlist building
This commit is contained in:
@@ -174,7 +174,7 @@ const removeItem = (call) => {
|
|||||||
/>
|
/>
|
||||||
</Modal.Actions>
|
</Modal.Actions>
|
||||||
</Modal>
|
</Modal>
|
||||||
<Tab.Pane attached='bottom' onDragOver={onDragOver} onDrop={onDrop}>
|
<Tab.Pane attached='bottom' onDragOver={onDragOver} onDrop={onDrop} style={{overflowY: "auto", height: 300}}>
|
||||||
{content}
|
{content}
|
||||||
</Tab.Pane>
|
</Tab.Pane>
|
||||||
<Menu fluid widths={2}>
|
<Menu fluid widths={2}>
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ const PlaylistItem = (props) => {
|
|||||||
const time = new Date(call.time);
|
const time = new Date(call.time);
|
||||||
const callTime = time.toLocaleTimeString();
|
const callTime = time.toLocaleTimeString();
|
||||||
return (
|
return (
|
||||||
<Table.Row key={index} onClick={(e) => props.onClick({ call: call }, e)}>
|
<Table.Row key={index} >
|
||||||
<Table.Cell>{call.len} </Table.Cell>
|
<Table.Cell>{call.len} </Table.Cell>
|
||||||
<Table.Cell>{tgAlpha}</Table.Cell>
|
<Table.Cell>{tgAlpha}</Table.Cell>
|
||||||
<Table.Cell>{callTime}</Table.Cell>
|
<Table.Cell>{callTime}</Table.Cell>
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ const initialState = {
|
|||||||
filterDate: false,
|
filterDate: false,
|
||||||
filterStarred: false,
|
filterStarred: false,
|
||||||
currentCallId: false,
|
currentCallId: false,
|
||||||
|
playlist: [],
|
||||||
live: false
|
live: false
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -27,6 +28,11 @@ export const callPlayerSlice = createSlice({
|
|||||||
state.newestCallTime = action.payload;
|
state.newestCallTime = action.payload;
|
||||||
state.oldestCallTime = action.payload;
|
state.oldestCallTime = action.payload;
|
||||||
},
|
},
|
||||||
|
setPlaylist: (state, action) => {
|
||||||
|
if (Array.isArray(action.payload )) {
|
||||||
|
state.playlist = action.payload;
|
||||||
|
}
|
||||||
|
},
|
||||||
setFilter: (state,action) => {
|
setFilter: (state,action) => {
|
||||||
var filter={};
|
var filter={};
|
||||||
state.live = !action.payload.live ? state.live : action.payload.live;
|
state.live = !action.payload.live ? state.live : action.payload.live;
|
||||||
|
|||||||
Reference in New Issue
Block a user