remove unneeded code

This commit is contained in:
FrankRua 2022-05-03 12:47:14 -04:00
parent 07dcfe8177
commit 694a3aabc7
2 changed files with 29 additions and 44 deletions

View file

@ -16,7 +16,13 @@
<funnelSubHeader cmsWidgetName="FunnelSubHeaderWidget" /> <funnelSubHeader cmsWidgetName="FunnelSubHeaderWidget" />
<div class="row my-2"> <div class="row my-2">
<div class="col"> <div class="col">
<textboxQuestion cmsWidgetName="LicensePlateNumber" v-model="licensePlate" isRequired inputId="license_plate" validationRules="license-plate-required" /> <textboxQuestion
cmsWidgetName="LicensePlateNumber"
v-model="licensePlate"
isRequired
inputId="license_plate"
validationRules="license-plate-required"
/>
</div> </div>
</div> </div>
<div class="row my-2"> <div class="row my-2">
@ -28,7 +34,14 @@
mask="#####" mask="#####"
validationRules="zip-required" validationRules="zip-required"
/> />
<textboxQuestion cmsWidgetName="RegistrationZip" v-model="registrationZip" isRequired inputId="zip" mask="#####" validationRules="zip-required" /> <textboxQuestion
cmsWidgetName="RegistrationZip"
v-model="registrationZip"
isRequired
inputId="zip"
mask="#####"
validationRules="zip-required"
/>
</div> </div>
</div> </div>
<div class="row my-2"> <div class="row my-2">
@ -39,7 +52,13 @@
inputId="email" inputId="email"
validationRules="email-address-required|email-address-format" validationRules="email-address-required|email-address-format"
/> />
<textboxQuestion cmsWidgetName="EmailAddress" v-model="email" isRequired inputId="email" validationRules="email-address-required|email-address-format" /> <textboxQuestion
cmsWidgetName="EmailAddress"
v-model="email"
isRequired
inputId="email"
validationRules="email-address-required|email-address-format"
/>
</div> </div>
</div> </div>
<alert <alert
@ -344,31 +363,13 @@ export default {
store.commit(storeMutations.UPDATE_MODEL, vehicleInfo.model); store.commit(storeMutations.UPDATE_MODEL, vehicleInfo.model);
store.commit(storeMutations.UPDATE_STYLE, vehicleInfo.style); store.commit(storeMutations.UPDATE_STYLE, vehicleInfo.style);
store.commit(storeMutations.UPDATE_CAR_ID, vehicleInfo.carId); store.commit(storeMutations.UPDATE_CAR_ID, vehicleInfo.carId);
store.commit( store.commit(storeMutations.UPDATE_VEHICLE_CATEGORY,vehicleInfo.category);
storeMutations.UPDATE_VEHICLE_CATEGORY, store.commit(storeMutations.UPDATE_VEHICLE_IMAGE_URL,vehicleInfo.imageUrl);
vehicleInfo.category store.commit(storeMutations.UPDATE_VEHICLE_IMAGE_VIF_NUMBER,vehicleInfo.imageVifNumber);
); store.commit(storeMutations.UPDATE_VEHICLE_IMAGE_COLOR,vehicleInfo.imageColor);
store.commit( store.commit(storeMutations.UPDATE_REGISTRATION_LICENSE_PLATE,this.licensePlate);
storeMutations.UPDATE_VEHICLE_IMAGE_URL,
vehicleInfo.imageUrl
);
store.commit(
storeMutations.UPDATE_VEHICLE_IMAGE_VIF_NUMBER,
vehicleInfo.imageVifNumber
);
store.commit(
storeMutations.UPDATE_VEHICLE_IMAGE_COLOR,
vehicleInfo.imageColor
);
store.commit(
storeMutations.UPDATE_REGISTRATION_LICENSE_PLATE,
this.licensePlate
);
store.commit(storeMutations.UPDATE_REGISTRATION_STATE, registrationState); store.commit(storeMutations.UPDATE_REGISTRATION_STATE, registrationState);
store.commit( store.commit(storeMutations.UPDATE_REGISTRATION_ZIP_CODE,this.registrationZip);
storeMutations.UPDATE_REGISTRATION_ZIP_CODE,
this.registrationZip
);
store.commit(storeMutations.UPDATE_SERVICE_LOCATION_ZIP, this.serviceZip); store.commit(storeMutations.UPDATE_SERVICE_LOCATION_ZIP, this.serviceZip);
store.commit(storeMutations.UPDATE_CUSTOMER_EMAIL_ADDRESS, this.email); store.commit(storeMutations.UPDATE_CUSTOMER_EMAIL_ADDRESS, this.email);
}, },

View file

@ -79,9 +79,6 @@ const routes = [
await GoToFunnelStartOn404(next); await GoToFunnelStartOn404(next);
} }
// Run analytics logic, if there is any for the page.
//attachCustomEvents(component);
return next({ name: to.query.fmgPage, query: to.query, params: to.params }); return next({ name: to.query.fmgPage, query: to.query, params: to.params });
} }
@ -103,9 +100,6 @@ const routes = [
await GoToFunnelStartOn404(next); await GoToFunnelStartOn404(next);
} }
// Run analytics logic, if there is any for the page.
//attachCustomEvents(nextComponent);
// Assign current query string parameters, as well as our fmgPage one. // Assign current query string parameters, as well as our fmgPage one.
next({ next({
name: routeData[0].name, name: routeData[0].name,
@ -281,14 +275,4 @@ function resetDependentState(component) {
return component.default.methods.resetDependentState(); return component.default.methods.resetDependentState();
} }
// Run analytics logic to run custom events.
function attachCustomEvents(component) {
try {
return component.default.methods.attachCustomEvents();
} catch (error) {
console.log(error);
return; // Eat the exception, analytics events shouldn't break anything.
}
}
export default router; export default router;