CSR-762 Make sure gaState isn't persisted
This commit is contained in:
parent
aba72ca593
commit
0e628a4850
2 changed files with 9 additions and 14 deletions
|
|
@ -90,7 +90,7 @@ export default {
|
|||
this.groupName,
|
||||
false
|
||||
);
|
||||
// window.lastFocusedInputGroup = this.groupName;
|
||||
|
||||
this.pushClickEventToGA();
|
||||
break;
|
||||
}
|
||||
|
|
@ -126,17 +126,14 @@ export default {
|
|||
this.valueToEmit = this.value;
|
||||
}
|
||||
|
||||
// window.currentlySelectedValues =
|
||||
// window.currentlySelectedValues ?? {};
|
||||
this.dispatchStoreAction(
|
||||
gaStoreActions.UPDATE_CURRENTLY_SELECTED_VALUES,
|
||||
{
|
||||
groupName: this.groupName,
|
||||
value: this.value,
|
||||
},
|
||||
// false
|
||||
);
|
||||
// window.currentlySelectedValues[this.groupName] = this.value;
|
||||
|
||||
this.handleChange(this.valueToEmit);
|
||||
},
|
||||
handleClick(e) {
|
||||
|
|
@ -144,8 +141,6 @@ export default {
|
|||
this.$emit("buttonClicked", this.valueToEmit);
|
||||
},
|
||||
pushClickEventToGA(value) {
|
||||
// window.firedGaClickEventValues =
|
||||
// window.firedGaClickEventValues ?? {};
|
||||
const lastFocusedInputGroup =
|
||||
store.getters.gaClickInformation.lastFocusedInputGroup;
|
||||
this.dispatchStoreAction(
|
||||
|
|
@ -154,10 +149,7 @@ export default {
|
|||
groupName: lastFocusedInputGroup,
|
||||
value: value ?? this.value,
|
||||
},
|
||||
// false
|
||||
);
|
||||
// window.firedGaClickEventValues[window.lastFocusedInputGroup] =
|
||||
// value ?? this.value;
|
||||
|
||||
this.pushEventToGA(
|
||||
this.$route.query[queryStrings.FMG_PAGE],
|
||||
|
|
@ -178,8 +170,6 @@ export default {
|
|||
this.isMultiSelect,
|
||||
false
|
||||
);
|
||||
// window.lastFocusedInputGroup = this.groupName;
|
||||
// window.wasLastFocusedInputMultiselect = this.isMultiSelect;
|
||||
},
|
||||
handleKeyboardNavigation(key) {
|
||||
this.test(key);
|
||||
|
|
@ -223,7 +213,7 @@ export default {
|
|||
this.groupName,
|
||||
false
|
||||
);
|
||||
// window.lastFocusedInputGroup = this.groupName;
|
||||
|
||||
if (
|
||||
firedGaClickEventValues[lastFocusedInputGroup] !=
|
||||
currentlySelectedValues[lastFocusedInputGroup]
|
||||
|
|
|
|||
|
|
@ -1398,7 +1398,12 @@ export const actions = {
|
|||
// });
|
||||
|
||||
export default createStore({
|
||||
plugins: [createPersistedState()],
|
||||
plugins: [createPersistedState({
|
||||
reducer: state => {
|
||||
const { gaState, ...rest } = state
|
||||
return rest
|
||||
}
|
||||
})],
|
||||
modules: {
|
||||
gaState,
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue