CSR-691 Revert a few dispatchStoreAction calls
This commit is contained in:
parent
fabfc93468
commit
15787aeb0d
2 changed files with 2 additions and 4 deletions
|
|
@ -199,7 +199,7 @@ export default {
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
resetDependentState() { // needed because navigateAfterSaveToHeritageFunnel calls it
|
resetDependentState() { // needed because navigateAfterSaveToHeritageFunnel calls it
|
||||||
this.dispatchStoreAction(storeActions.RESET_PARTS_STATE_AND_DEPENDENCIES);
|
store.dispatch(storeActions.RESET_PARTS_STATE_AND_DEPENDENCIES);
|
||||||
},
|
},
|
||||||
updateCustomerInfo(vin, vehicle) {
|
updateCustomerInfo(vin, vehicle) {
|
||||||
if (this.isCarIdDifferent && !this.isSelectedGlassAvailableForVehicle) {
|
if (this.isCarIdDifferent && !this.isSelectedGlassAvailableForVehicle) {
|
||||||
|
|
@ -221,8 +221,6 @@ export default {
|
||||||
watch: {
|
watch: {
|
||||||
selectedVehicleVin() {
|
selectedVehicleVin() {
|
||||||
// does this vehicle match the previously selected carId?
|
// does this vehicle match the previously selected carId?
|
||||||
console.log(this.selectedVehicle)
|
|
||||||
console.log(store.getters.vehicle)
|
|
||||||
this.isCarIdDifferent = this.selectedVehicle.vehicle.carId !== store.getters.vehicle.carId;
|
this.isCarIdDifferent = this.selectedVehicle.vehicle.carId !== store.getters.vehicle.carId;
|
||||||
this.$refs.funnelFooter.updateButtonText(`Continue with ${this.selectedVehicle.vehicle.year} ${this.selectedVehicle.vehicle.make} ${this.selectedVehicle.vehicle.model}`);
|
this.$refs.funnelFooter.updateButtonText(`Continue with ${this.selectedVehicle.vehicle.year} ${this.selectedVehicle.vehicle.make} ${this.selectedVehicle.vehicle.model}`);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -198,7 +198,7 @@ export default {
|
||||||
store.commit(storeMutations.UPDATE_REGISTRATION_CITY, null);
|
store.commit(storeMutations.UPDATE_REGISTRATION_CITY, null);
|
||||||
store.commit(storeMutations.UPDATE_REGISTRATION_FIRST_NAME, null);
|
store.commit(storeMutations.UPDATE_REGISTRATION_FIRST_NAME, null);
|
||||||
store.commit(storeMutations.UPDATE_REGISTRATION_LAST_NAME, null);
|
store.commit(storeMutations.UPDATE_REGISTRATION_LAST_NAME, null);
|
||||||
this.dispatchStoreAction(storeActions.RESET_PARTS_STATE_AND_DEPENDENCIES);
|
store.dispatch(storeActions.RESET_PARTS_STATE_AND_DEPENDENCIES);
|
||||||
},
|
},
|
||||||
attachCustomEvents() {
|
attachCustomEvents() {
|
||||||
this.prependActionToMethod(this, this.forwardButtonAction, () => {
|
this.prependActionToMethod(this, this.forwardButtonAction, () => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue