CSR-702 Cleanup
This commit is contained in:
parent
868b3d663d
commit
7e5fb4c906
6 changed files with 2 additions and 15 deletions
|
|
@ -142,7 +142,7 @@ export default {
|
|||
|
||||
if (!partsLookup) { return }
|
||||
|
||||
const glassNameAndPartsForStore = partsLookup.data.glassNameAndPartsForStore;
|
||||
const glassNameAndPartsForStore = partsLookup.data.glassNameAndParts;
|
||||
|
||||
// test response data for multiple parts
|
||||
const hasMultipleParts = glassNameAndPartsForStore.some((glass) => glass.parts?.length > 1);
|
||||
|
|
|
|||
|
|
@ -157,7 +157,6 @@ export default {
|
|||
Object.keys(store.getters.pageData(fmgPageValues.VEHICLE_PARTS)).length !== 0;
|
||||
},
|
||||
backButtonAction() {
|
||||
console.log(this.$store.getters.pageData(fmgPageValues.PART_QUESTIONS))
|
||||
const hasPartQuestions = this.hasPartQuestions(this.$store.getters.pageData(fmgPageValues.PART_QUESTIONS).partsOrQuestions);
|
||||
const backNavigationScenario = hasPartQuestions ? this.navigationScenarios.CLICKED_BACK_WITH_PART_QUESTION_ANSWERS : this.navigationScenarios.CLICKED_BACK_WITHOUT_PART_QUESTION_ANSWERS;
|
||||
|
||||
|
|
@ -167,8 +166,6 @@ export default {
|
|||
);
|
||||
},
|
||||
async forwardButtonAction() {
|
||||
const selectedGlassPartNumbers = [];
|
||||
const matchedParts = [];
|
||||
let isMoldingQuestions = false;
|
||||
|
||||
// Match them to the parts from the API.
|
||||
|
|
|
|||
|
|
@ -265,7 +265,6 @@ export const mutations = {
|
|||
state.order.vehicle.registration.lastName = null;
|
||||
},
|
||||
resetGlassPartsState(state) {
|
||||
console.log("resetGlassPartsState")
|
||||
state.order.lineItems.glassParts = null;
|
||||
state.order.damage.partQuestionAnswers = null;
|
||||
state.applicationUser.pageData[fmgPageValues.PART_QUESTIONS] = null;
|
||||
|
|
@ -866,7 +865,6 @@ export const actions = {
|
|||
},
|
||||
savePartQuestionAnswers(context, partQuestionAnswersArray) {
|
||||
//Save new values
|
||||
// context.dispatch(storeActions.SAVE_GLASS_PARTS, null);
|
||||
context.commit(storeMutations.UPDATE_PART_QUESTION_ANSWERS, partQuestionAnswersArray);
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -92,10 +92,6 @@ export default {
|
|||
: this.selectedValues[0];
|
||||
}
|
||||
},
|
||||
// unmounted() { // needed to clear this button's selectedValues if it is removed
|
||||
// this.checkValue = false;
|
||||
// this.handleCheckChange();
|
||||
// },
|
||||
methods: {
|
||||
displayLoader() {
|
||||
this.isLoaderDisplayed = true;
|
||||
|
|
|
|||
|
|
@ -92,10 +92,6 @@ export default {
|
|||
: this.selectedValues[0];
|
||||
}
|
||||
},
|
||||
// unmounted() { // needed to clear this button's selectedValues if it is removed
|
||||
// this.checkValue = false;
|
||||
// this.handleCheckChange();
|
||||
// },
|
||||
methods: {
|
||||
displayLoader() {
|
||||
this.isLoaderDisplayed = true;
|
||||
|
|
|
|||
|
|
@ -181,7 +181,7 @@ export default {
|
|||
|
||||
const fieldOptions = {
|
||||
type: inputType,
|
||||
// checkedValue: props.value, // EX: "Single" or "Passenger"
|
||||
checkedValue: props.value, // EX: "Single" or "Passenger"
|
||||
potentialInitialValue: props.selectedValues,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue