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,
|
this.groupName,
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
// window.lastFocusedInputGroup = this.groupName;
|
|
||||||
this.pushClickEventToGA();
|
this.pushClickEventToGA();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -126,17 +126,14 @@ export default {
|
||||||
this.valueToEmit = this.value;
|
this.valueToEmit = this.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
// window.currentlySelectedValues =
|
|
||||||
// window.currentlySelectedValues ?? {};
|
|
||||||
this.dispatchStoreAction(
|
this.dispatchStoreAction(
|
||||||
gaStoreActions.UPDATE_CURRENTLY_SELECTED_VALUES,
|
gaStoreActions.UPDATE_CURRENTLY_SELECTED_VALUES,
|
||||||
{
|
{
|
||||||
groupName: this.groupName,
|
groupName: this.groupName,
|
||||||
value: this.value,
|
value: this.value,
|
||||||
},
|
},
|
||||||
// false
|
|
||||||
);
|
);
|
||||||
// window.currentlySelectedValues[this.groupName] = this.value;
|
|
||||||
this.handleChange(this.valueToEmit);
|
this.handleChange(this.valueToEmit);
|
||||||
},
|
},
|
||||||
handleClick(e) {
|
handleClick(e) {
|
||||||
|
|
@ -144,8 +141,6 @@ export default {
|
||||||
this.$emit("buttonClicked", this.valueToEmit);
|
this.$emit("buttonClicked", this.valueToEmit);
|
||||||
},
|
},
|
||||||
pushClickEventToGA(value) {
|
pushClickEventToGA(value) {
|
||||||
// window.firedGaClickEventValues =
|
|
||||||
// window.firedGaClickEventValues ?? {};
|
|
||||||
const lastFocusedInputGroup =
|
const lastFocusedInputGroup =
|
||||||
store.getters.gaClickInformation.lastFocusedInputGroup;
|
store.getters.gaClickInformation.lastFocusedInputGroup;
|
||||||
this.dispatchStoreAction(
|
this.dispatchStoreAction(
|
||||||
|
|
@ -154,10 +149,7 @@ export default {
|
||||||
groupName: lastFocusedInputGroup,
|
groupName: lastFocusedInputGroup,
|
||||||
value: value ?? this.value,
|
value: value ?? this.value,
|
||||||
},
|
},
|
||||||
// false
|
|
||||||
);
|
);
|
||||||
// window.firedGaClickEventValues[window.lastFocusedInputGroup] =
|
|
||||||
// value ?? this.value;
|
|
||||||
|
|
||||||
this.pushEventToGA(
|
this.pushEventToGA(
|
||||||
this.$route.query[queryStrings.FMG_PAGE],
|
this.$route.query[queryStrings.FMG_PAGE],
|
||||||
|
|
@ -178,8 +170,6 @@ export default {
|
||||||
this.isMultiSelect,
|
this.isMultiSelect,
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
// window.lastFocusedInputGroup = this.groupName;
|
|
||||||
// window.wasLastFocusedInputMultiselect = this.isMultiSelect;
|
|
||||||
},
|
},
|
||||||
handleKeyboardNavigation(key) {
|
handleKeyboardNavigation(key) {
|
||||||
this.test(key);
|
this.test(key);
|
||||||
|
|
@ -223,7 +213,7 @@ export default {
|
||||||
this.groupName,
|
this.groupName,
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
// window.lastFocusedInputGroup = this.groupName;
|
|
||||||
if (
|
if (
|
||||||
firedGaClickEventValues[lastFocusedInputGroup] !=
|
firedGaClickEventValues[lastFocusedInputGroup] !=
|
||||||
currentlySelectedValues[lastFocusedInputGroup]
|
currentlySelectedValues[lastFocusedInputGroup]
|
||||||
|
|
|
||||||
|
|
@ -1398,7 +1398,12 @@ export const actions = {
|
||||||
// });
|
// });
|
||||||
|
|
||||||
export default createStore({
|
export default createStore({
|
||||||
plugins: [createPersistedState()],
|
plugins: [createPersistedState({
|
||||||
|
reducer: state => {
|
||||||
|
const { gaState, ...rest } = state
|
||||||
|
return rest
|
||||||
|
}
|
||||||
|
})],
|
||||||
modules: {
|
modules: {
|
||||||
gaState,
|
gaState,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue