adding more

This commit is contained in:
Luke Berndt
2023-01-12 07:09:40 -05:00
parent 28ecf67cbd
commit dad7dc1bd2
2 changed files with 5 additions and 3 deletions

View File

@@ -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();

View File

@@ -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;