CSR-762 Fix merge conflicts
This commit is contained in:
commit
d7115f2ac6
7 changed files with 5 additions and 23 deletions
|
|
@ -72,23 +72,16 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.log("mounted: ", {
|
|
||||||
isChecked: this.isChecked
|
|
||||||
})
|
|
||||||
if (this.isChecked) {
|
if (this.isChecked) {
|
||||||
// if (this.shouldPushClickEventToGAOnMount) {
|
if (this.shouldPushClickEventToGAOnMount) {
|
||||||
// this.handleEventAction(this.eventTypes.MOUNT)
|
this.handleEventAction(this.eventTypes.MOUNT)
|
||||||
// } else {
|
} else {
|
||||||
this.handleChange(this.modelValue);
|
this.handleChange(this.modelValue);
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleEventAction(eventType, e) {
|
handleEventAction(eventType, e) {
|
||||||
console.log("handleEventAction: ", {
|
|
||||||
eventType,
|
|
||||||
value: this.value,
|
|
||||||
});
|
|
||||||
if (this.isMultiSelect) {
|
if (this.isMultiSelect) {
|
||||||
switch (eventType) {
|
switch (eventType) {
|
||||||
case this.eventTypes.ENTER:
|
case this.eventTypes.ENTER:
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@ const storeActions = {
|
||||||
LOOKUP_VEHICLE_BY_VIN: "lookupVehicleByVin",
|
LOOKUP_VEHICLE_BY_VIN: "lookupVehicleByVin",
|
||||||
LOOKUP_VIN_BY_PLATE: "lookupVinByPlate",
|
LOOKUP_VIN_BY_PLATE: "lookupVinByPlate",
|
||||||
LOOKUP_VIN_BY_ADDRESS: "lookupVinByAddress",
|
LOOKUP_VIN_BY_ADDRESS: "lookupVinByAddress",
|
||||||
|
|
||||||
GET_PARTS_OR_QUESTIONS: "getPartsOrQuestions",
|
GET_PARTS_OR_QUESTIONS: "getPartsOrQuestions",
|
||||||
GET_PARTS: "getParts",
|
GET_PARTS: "getParts",
|
||||||
GET_CAPABILITY_QUESTIONS: "getCapabilityQuestions",
|
GET_CAPABILITY_QUESTIONS: "getCapabilityQuestions",
|
||||||
|
|
|
||||||
|
|
@ -68,4 +68,4 @@ const storeMutations = {
|
||||||
UPDATE_TRIGGERED_SITE_ENTRY: "updateTriggeredSiteEntry",
|
UPDATE_TRIGGERED_SITE_ENTRY: "updateTriggeredSiteEntry",
|
||||||
};
|
};
|
||||||
|
|
||||||
export { storeMutations };
|
export { storeMutations };
|
||||||
|
|
@ -200,16 +200,10 @@ export default {
|
||||||
// Loads the preselected values from the store.
|
// Loads the preselected values from the store.
|
||||||
LoadPreselectedValues() {
|
LoadPreselectedValues() {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
console.log("LoadPreselectedValues: ", {
|
|
||||||
modelValue: this.modelValue,
|
|
||||||
alreadyPopulatedPartsData: this.alreadyPopulatedPartsData,
|
|
||||||
selectedPartNumber: this.selectedPartNumber
|
|
||||||
})
|
|
||||||
if (this.modelValue !== undefined) {
|
if (this.modelValue !== undefined) {
|
||||||
// Populate button-question model-value if parts data already exists in VueX
|
// Populate button-question model-value if parts data already exists in VueX
|
||||||
this.shouldPushClickEventToGAOnMount = false;
|
this.shouldPushClickEventToGAOnMount = false;
|
||||||
this.selectedTint = this.alreadyPopulatedPartsData.filter(part => part.partNumber === this.selectedPartNumber)[0]?.color;
|
this.selectedTint = this.alreadyPopulatedPartsData.filter(part => part.partNumber === this.selectedPartNumber)[0]?.color;
|
||||||
console.log({color: this.selectedTint})
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -57,8 +57,6 @@ export default {
|
||||||
'path': `/fmg/?${queryStrings.FMG_PAGE}=${currentPageName}`
|
'path': `/fmg/?${queryStrings.FMG_PAGE}=${currentPageName}`
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("PUSHING: ", labelToLog)
|
|
||||||
|
|
||||||
pushToDataLayerIfDefined(eventToBePushed);
|
pushToDataLayerIfDefined(eventToBePushed);
|
||||||
|
|
||||||
if (pushToLogApp) {
|
if (pushToLogApp) {
|
||||||
|
|
|
||||||
|
|
@ -186,7 +186,6 @@ describe("list-button-horizontal.vue", () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
function setupMocks({ mockData }) {
|
function setupMocks({ mockData }) {
|
||||||
console.log(mockData);
|
|
||||||
const wrapper = mount(listButtonHorizontal, {
|
const wrapper = mount(listButtonHorizontal, {
|
||||||
...mockData,
|
...mockData,
|
||||||
propsData: {
|
propsData: {
|
||||||
|
|
|
||||||
|
|
@ -252,7 +252,6 @@ describe("list-button.vue", () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
function setupMocks({ mockData }) {
|
function setupMocks({ mockData }) {
|
||||||
console.log(mockData);
|
|
||||||
const wrapper = mount(listButton, {
|
const wrapper = mount(listButton, {
|
||||||
...mockData,
|
...mockData,
|
||||||
mixins: [inputButtonWrapperMixin],
|
mixins: [inputButtonWrapperMixin],
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue