diff --git a/src/constants/store-actions.js b/src/constants/store-actions.js
index dddab1d66..0717a3498 100644
--- a/src/constants/store-actions.js
+++ b/src/constants/store-actions.js
@@ -14,10 +14,10 @@ const storeActions = {
GET_PARTS_OR_QUESTIONS: "getPartsOrQuestions",
// DEPENDENCY MUTATIONS
- RESET_VEHICLE_AND_DEPS: "resetVehicleAndDependencies",
- RESET_DAMAGE_AND_DEPS: "resetDamageAndDependencies",
- RESET_REGISTRATION_AND_DEPS: "resetRegistrationAndDependencies",
- RESET_PARTS_AND_DEPS: "resetPartsAndDependencies",
+ RESET_VEHICLE_STATE: "resetVehicleAndDependencies",
+ RESET_DAMAGE_STATE: "resetDamageAndDependencies",
+ RESET_REGISTRATION_STATE: "resetRegistrationAndDependencies",
+ RESET_PARTS_STATE: "resetPartsAndDependencies",
};
export { storeActions };
diff --git a/src/constants/store-mutations.js b/src/constants/store-mutations.js
index c572c4f69..9034d594f 100644
--- a/src/constants/store-mutations.js
+++ b/src/constants/store-mutations.js
@@ -16,10 +16,10 @@ const storeMutations = {
REMOVE_EVENT_FROM_BUS: "removeEventFromBus",
// DEPENDENCY MUTATIONS
- RESET_VEHICLE_AND_DEPS: "resetVehicleAndDependencies",
- RESET_DAMAGE_AND_DEPS: "resetDamageAndDependencies",
- RESET_REGISTRATION_AND_DEPS: "resetRegistrationAndDependencies",
- RESET_PARTS_AND_DEPS: "resetPartsAndDependencies",
+ RESET_VEHICLE_STATE: "resetVehicleState",
+ RESET_DAMAGE_STATE: "resetDamageState",
+ RESET_REGISTRATION_STATE: "resetRegistrationState",
+ RESET_PARTS_STATE: "resetPartsState",
};
diff --git a/src/layouts/form-test/form-test.vue b/src/layouts/form-test/form-test.vue
index f12abb261..774d863a8 100644
--- a/src/layouts/form-test/form-test.vue
+++ b/src/layouts/form-test/form-test.vue
@@ -144,7 +144,7 @@ export default {
},
resetDependentState() {
// Invokes
- store.dispatch(storeActions.RESET_PARTS_AND_DEPS);
+ store.dispatch(storeActions.RESET_PARTS_STATE);
},
onSubmit(values) {
window.alert('Success! Submitted values: ' + JSON.stringify(values, null ,2))
diff --git a/src/layouts/vehicle-damage/vehicle-damage.spec.js b/src/layouts/vehicle-damage/vehicle-damage.spec.js
index 519d33457..d01febba1 100644
--- a/src/layouts/vehicle-damage/vehicle-damage.spec.js
+++ b/src/layouts/vehicle-damage/vehicle-damage.spec.js
@@ -162,7 +162,7 @@ describe("vehicle-damage.vue", () => {
wrapper.vm.resetDependentState();
//Assert
- expect(store.dispatch).toBeCalledWith(storeActions.RESET_PARTS_AND_DEPS)
+ expect(store.dispatch).toBeCalledWith(storeActions.RESET_PARTS_STATE)
});
});
diff --git a/src/layouts/vehicle-damage/vehicle-damage.vue b/src/layouts/vehicle-damage/vehicle-damage.vue
index aa888e14a..2188d4845 100644
--- a/src/layouts/vehicle-damage/vehicle-damage.vue
+++ b/src/layouts/vehicle-damage/vehicle-damage.vue
@@ -128,7 +128,7 @@ export default {
},
resetDependentState() {
// Invokes
- store.dispatch(storeActions.RESET_PARTS_AND_DEPS);
+ store.dispatch(storeActions.RESET_PARTS_STATE);
},
backButtonAction() {
// route to move backwards
diff --git a/src/layouts/vehicle-make/vehicle-make.spec.js b/src/layouts/vehicle-make/vehicle-make.spec.js
index b2c4dcaf7..ab04bb1d2 100644
--- a/src/layouts/vehicle-make/vehicle-make.spec.js
+++ b/src/layouts/vehicle-make/vehicle-make.spec.js
@@ -223,8 +223,8 @@ describe("vehicle-make.vue", () => {
expect(store.commit).toBeCalledWith(storeMutations.UPDATE_CAR_ID, null)
expect(store.commit).toBeCalledWith(storeMutations.UPDATE_VEHICLE_CATEGORY, null)
- expect(store.dispatch).toBeCalledWith(storeActions.RESET_DAMAGE_AND_DEPS)
- expect(store.dispatch).toBeCalledWith(storeActions.RESET_REGISTRATION_AND_DEPS)
+ expect(store.dispatch).toBeCalledWith(storeActions.RESET_DAMAGE_STATE)
+ expect(store.dispatch).toBeCalledWith(storeActions.RESET_REGISTRATION_STATE)
});
});
diff --git a/src/layouts/vehicle-make/vehicle-make.vue b/src/layouts/vehicle-make/vehicle-make.vue
index c91379318..41c19a64c 100644
--- a/src/layouts/vehicle-make/vehicle-make.vue
+++ b/src/layouts/vehicle-make/vehicle-make.vue
@@ -94,8 +94,8 @@ export default {
store.commit(storeMutations.UPDATE_VEHICLE_CATEGORY, null);
// Invokes
- store.dispatch(storeActions.RESET_DAMAGE_AND_DEPS);
- store.dispatch(storeActions.RESET_REGISTRATION_AND_DEPS);
+ store.dispatch(storeActions.RESET_DAMAGE_STATE);
+ store.dispatch(storeActions.RESET_REGISTRATION_STATE);
},
},
diff --git a/src/layouts/vehicle-model/vehicle-model.spec.js b/src/layouts/vehicle-model/vehicle-model.spec.js
index 7f8f96eb6..4e40a89cb 100644
--- a/src/layouts/vehicle-model/vehicle-model.spec.js
+++ b/src/layouts/vehicle-model/vehicle-model.spec.js
@@ -208,8 +208,8 @@ describe("vehicle-model.vue", () => {
expect(store.commit).toBeCalledWith(storeMutations.UPDATE_CAR_ID, null)
expect(store.commit).toBeCalledWith(storeMutations.UPDATE_VEHICLE_CATEGORY, null)
- expect(store.dispatch).toBeCalledWith(storeActions.RESET_DAMAGE_AND_DEPS)
- expect(store.dispatch).toBeCalledWith(storeActions.RESET_REGISTRATION_AND_DEPS)
+ expect(store.dispatch).toBeCalledWith(storeActions.RESET_DAMAGE_STATE)
+ expect(store.dispatch).toBeCalledWith(storeActions.RESET_REGISTRATION_STATE)
});
});
diff --git a/src/layouts/vehicle-model/vehicle-model.vue b/src/layouts/vehicle-model/vehicle-model.vue
index 02de04c3b..f57429c8b 100644
--- a/src/layouts/vehicle-model/vehicle-model.vue
+++ b/src/layouts/vehicle-model/vehicle-model.vue
@@ -94,8 +94,8 @@ export default {
store.commit(storeMutations.UPDATE_VEHICLE_CATEGORY, null);
// Invokes
- store.dispatch(storeActions.RESET_DAMAGE_AND_DEPS);
- store.dispatch(storeActions.RESET_REGISTRATION_AND_DEPS);
+ store.dispatch(storeActions.RESET_DAMAGE_STATE);
+ store.dispatch(storeActions.RESET_REGISTRATION_STATE);
},
},
diff --git a/src/layouts/vehicle-parts/part-question/part-question.vue b/src/layouts/vehicle-parts/part-question/part-question.vue
index 9a7e63df6..7046e1b79 100644
--- a/src/layouts/vehicle-parts/part-question/part-question.vue
+++ b/src/layouts/vehicle-parts/part-question/part-question.vue
@@ -1,7 +1,7 @@
-
{{ colorQuestionText }}
+
{{ colorQuestionText }}
@@ -27,6 +27,7 @@
+