CSR-297 - reset vehicle damage selections
This commit is contained in:
parent
eead9f0ccd
commit
a40600bba5
2 changed files with 4 additions and 3 deletions
|
|
@ -27,6 +27,7 @@ import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
|
||||||
import { settleAllPromises } from "@/helpers/layout-helper";
|
import { settleAllPromises } from "@/helpers/layout-helper";
|
||||||
import { storeActions } from "@/constants/store-actions";
|
import { storeActions } from "@/constants/store-actions";
|
||||||
import store from "@/store";
|
import store from "@/store";
|
||||||
|
import { storeMutations } from "@/constants/store-mutations";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "vehicle-style",
|
name: "vehicle-style",
|
||||||
|
|
@ -101,6 +102,9 @@ export default {
|
||||||
// Invokes
|
// Invokes
|
||||||
store.dispatch(storeActions.RESET_DAMAGE_STATE_AND_DEPENDENCIES);
|
store.dispatch(storeActions.RESET_DAMAGE_STATE_AND_DEPENDENCIES);
|
||||||
store.dispatch(storeActions.RESET_REGISTRATION_STATE_AND_DEPENDENCIES);
|
store.dispatch(storeActions.RESET_REGISTRATION_STATE_AND_DEPENDENCIES);
|
||||||
|
store.commit(storeMutations.UPDATE_IS_REPAIR, null);
|
||||||
|
store.commit(storeMutations.UPDATE_NUMBER_OF_CHIPS, null);
|
||||||
|
store.commit(storeMutations.UPDATE_GLASS_TO_REPLACE, []);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -93,9 +93,6 @@ export default {
|
||||||
store.commit(storeMutations.UPDATE_STYLE, null);
|
store.commit(storeMutations.UPDATE_STYLE, null);
|
||||||
store.commit(storeMutations.UPDATE_CAR_ID, null);
|
store.commit(storeMutations.UPDATE_CAR_ID, null);
|
||||||
store.commit(storeMutations.UPDATE_VEHICLE_CATEGORY, null);
|
store.commit(storeMutations.UPDATE_VEHICLE_CATEGORY, null);
|
||||||
store.commit(storeMutations.UPDATE_IS_REPAIR, null);
|
|
||||||
store.commit(storeMutations.UPDATE_NUMBER_OF_CHIPS, null);
|
|
||||||
store.commit(storeMutations.UPDATE_GLASS_TO_REPLACE, []);
|
|
||||||
|
|
||||||
|
|
||||||
// Invokes
|
// Invokes
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue