mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-11 08:17:29 -05:00
adding more
This commit is contained in:
@@ -310,7 +310,8 @@ const getFilter = () => {
|
||||
filterTalkgroups: [],
|
||||
filterGroupId: false,
|
||||
filterStarred: false,
|
||||
live: true
|
||||
live: true,
|
||||
shortName: shortName
|
||||
};
|
||||
|
||||
// is there a star filter?
|
||||
@@ -401,8 +402,8 @@ const getFilter = () => {
|
||||
this.startSocket(shortName, filterType, filterCode, filter.filterStarred);
|
||||
}*/
|
||||
setStateFromUri();
|
||||
console.log("Setting short name to: " + shortName)
|
||||
dispatch(setShortName(shortName));
|
||||
//console.log("Setting short name to: " + shortName)
|
||||
//dispatch(setShortName(shortName));
|
||||
|
||||
return () => {
|
||||
//this.endSocket();
|
||||
|
||||
@@ -35,6 +35,7 @@ export const callPlayerSlice = createSlice({
|
||||
state.filterTalkgroups = !action.payload.filterTalkgroups ? [] : action.payload.filterTalkgroups;
|
||||
state.filterGroupId = !action.payload.filterGroupId ? false : action.payload.filterGroupId;
|
||||
state.filterDate = !action.payload.filterDate ? 0 : action.payload.filterDate;
|
||||
state.shortName = !action.payload.shortName ? state.shortName : action.payload.shortName;
|
||||
},
|
||||
setLive: (state,action) => {
|
||||
state.live = action.payload;
|
||||
|
||||
Reference in New Issue
Block a user