From dad7dc1bd2ac33b05ea5fb7c69d11219d312e5c7 Mon Sep 17 00:00:00 2001 From: Luke Berndt Date: Thu, 12 Jan 2023 07:09:40 -0500 Subject: [PATCH] adding more --- frontend/src/Call/CallPlayer.js | 7 ++++--- frontend/src/features/callPlayer/callPlayerSlice.js | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/Call/CallPlayer.js b/frontend/src/Call/CallPlayer.js index 15c3f0e..3c47ba8 100644 --- a/frontend/src/Call/CallPlayer.js +++ b/frontend/src/Call/CallPlayer.js @@ -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(); diff --git a/frontend/src/features/callPlayer/callPlayerSlice.js b/frontend/src/features/callPlayer/callPlayerSlice.js index d1edcab..fa13ce1 100644 --- a/frontend/src/features/callPlayer/callPlayerSlice.js +++ b/frontend/src/features/callPlayer/callPlayerSlice.js @@ -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;