CSR-762 Cleanup
This commit is contained in:
parent
14bed5524c
commit
7f64513a03
6 changed files with 7 additions and 65 deletions
|
|
@ -27,8 +27,6 @@ import { useField } from "vee-validate";
|
|||
import { toRef } from "vue";
|
||||
import { gaStoreActions } from "../../constants/store-actions";
|
||||
|
||||
// TODO KO Bug: select crack via keyboard, continue - doesn't fire
|
||||
// TODO KO Bug: select a chip via keyboard, hit continue - doesn't fire the chip number
|
||||
export default {
|
||||
name: "base-input-button",
|
||||
emits: ["change"],
|
||||
|
|
|
|||
|
|
@ -63,14 +63,6 @@ const storeActions = {
|
|||
"resetMoldingAndCapabilityQuestionAnswersIfNeeded",
|
||||
SAVE_MOLDING_QUESTION_ANSWERS: "saveMoldingQuestionAnswers",
|
||||
SAVE_CAPABILITY_QUESTION_ANSWERS: "saveCapabilityQuestionAnswers",
|
||||
|
||||
// START GA click event actions
|
||||
// UPDATE_CURRENTLY_SELECTED_VALUES: "updateCurrentlySelectedValues",
|
||||
// UPDATE_FIRED_GA_CLICK_EVENT_VALUES: "updateFiredGaClickEventValues",
|
||||
// UPDATE_LAST_FOCUSED_INPUT_GROUP: "updateLastFocusedInputGroup",
|
||||
// UPDATE_WAS_LAST_FOCUSED_INPUT_MULTISELECT:
|
||||
// "updateWasLastFocusedInputMultiselect",
|
||||
// END GA click event actions
|
||||
};
|
||||
|
||||
const gaStoreActions = {
|
||||
|
|
|
|||
|
|
@ -66,14 +66,6 @@ const storeMutations = {
|
|||
// EXPERIMENT MUTATIONS
|
||||
UPDATE_EXPERIMENTS: "updateExperiments",
|
||||
UPDATE_TRIGGERED_SITE_ENTRY: "updateTriggeredSiteEntry",
|
||||
|
||||
// START GA click event mutations
|
||||
// UPDATE_CURRENTLY_SELECTED_VALUES: "updateCurrentlySelectedValues",
|
||||
// UPDATE_FIRED_GA_CLICK_EVENT_VALUES: "updateFiredGaClickEventValues",
|
||||
// UPDATE_LAST_FOCUSED_INPUT_GROUP: "updateLastFocusedInputGroup",
|
||||
// UPDATE_WAS_LAST_FOCUSED_INPUT_MULTISELECT:
|
||||
// "updateWasLastFocusedInputMultiselect",
|
||||
// END GA click event mutations
|
||||
};
|
||||
|
||||
const gaStoreMutations = {
|
||||
|
|
|
|||
|
|
@ -29,8 +29,6 @@ export default {
|
|||
logCustomEvent(category, action, label, value) {
|
||||
const currentPageName = getPageNameByQueryString();
|
||||
|
||||
console.log("PUSHING: ", label)
|
||||
|
||||
var payload = {
|
||||
userId: getDeviceIdValue(),
|
||||
sessionKey: getSessionKeyValue(),
|
||||
|
|
|
|||
|
|
@ -63,14 +63,12 @@ export default {
|
|||
};
|
||||
},
|
||||
pushRadioClickEventIfNecessary() {
|
||||
const gaClickInformation = this.$store.getters.gaClickInformation;
|
||||
const firedGaClickEventValues =
|
||||
gaClickInformation.firedGaClickEventValues;
|
||||
const currentlySelectedValues =
|
||||
gaClickInformation.currentlySelectedValues;
|
||||
const lastFocusedInputGroup = gaClickInformation.lastFocusedInputGroup;
|
||||
const wasLastFocusedInputMultiselect =
|
||||
gaClickInformation.wasLastFocusedInputMultiselect;
|
||||
const {
|
||||
firedGaClickEventValues,
|
||||
currentlySelectedValues,
|
||||
lastFocusedInputGroup,
|
||||
wasLastFocusedInputMultiselect,
|
||||
} = this.$store.getters.gaClickInformation;
|
||||
|
||||
// Keyboard navigation
|
||||
if (
|
||||
|
|
|
|||
|
|
@ -1359,48 +1359,12 @@ export const actions = {
|
|||
clearVin(context) {
|
||||
context.commit(storeMutations.UPDATE_VEHICLE_VIN, null);
|
||||
},
|
||||
|
||||
// START GA click event actions
|
||||
// updateCurrentlySelectedValues(context, { groupName, value }) {
|
||||
// context.commit(
|
||||
// storeMutations.UPDATE_CURRENTLY_SELECTED_VALUES,
|
||||
// groupName,
|
||||
// value
|
||||
// );
|
||||
// },
|
||||
// updateFiredGaClickEventValues(context, { groupName, value }) {
|
||||
// context.commit(
|
||||
// storeMutations.UPDATE_FIRED_GA_CLICK_EVENT_VALUES,
|
||||
// groupName,
|
||||
// value
|
||||
// );
|
||||
// },
|
||||
// updateLastFocusedInputGroup(context, groupName) {
|
||||
// context.commit(storeMutations.UPDATE_LAST_FOCUSED_INPUT_GROUP, groupName);
|
||||
// },
|
||||
// updateWasLastFocusedInputMultiselect(
|
||||
// context,
|
||||
// wasLastFocusedInputMultiselect
|
||||
// ) {
|
||||
// context.commit(
|
||||
// storeMutations.UPDATE_WAS_LAST_FOCUSED_INPUT_MULTISELECT,
|
||||
// wasLastFocusedInputMultiselect
|
||||
// );
|
||||
// },
|
||||
// END GA click event actions
|
||||
};
|
||||
|
||||
// const store = new Store({
|
||||
// state,
|
||||
// mutations,
|
||||
// getters,
|
||||
// actions,
|
||||
// });
|
||||
|
||||
export default createStore({
|
||||
plugins: [createPersistedState({
|
||||
reducer: state => {
|
||||
const { gaState, ...rest } = state
|
||||
const { gaState, ...rest } = state // Make sure gaState isn't persisted
|
||||
return rest
|
||||
}
|
||||
})],
|
||||
|
|
|
|||
Loading…
Reference in a new issue