From 7e5fb4c906903f2c657553327b50e091e10add72 Mon Sep 17 00:00:00 2001 From: Katie Date: Tue, 26 Jul 2022 15:31:20 -0400 Subject: [PATCH] CSR-702 Cleanup --- src/layouts/part-questions/part-questions.vue | 2 +- src/layouts/vehicle-parts/vehicle-parts.vue | 3 --- src/store/index.js | 2 -- .../list-button-horizontal/list-button-horizontal.vue | 4 ---- src/ux-components/list-button/list-button.vue | 4 ---- src/ux-components/list-card/list-card.vue | 2 +- 6 files changed, 2 insertions(+), 15 deletions(-) diff --git a/src/layouts/part-questions/part-questions.vue b/src/layouts/part-questions/part-questions.vue index 3f779ace8..ff5f494c1 100644 --- a/src/layouts/part-questions/part-questions.vue +++ b/src/layouts/part-questions/part-questions.vue @@ -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); diff --git a/src/layouts/vehicle-parts/vehicle-parts.vue b/src/layouts/vehicle-parts/vehicle-parts.vue index 75ba3df7f..80cdf8a97 100644 --- a/src/layouts/vehicle-parts/vehicle-parts.vue +++ b/src/layouts/vehicle-parts/vehicle-parts.vue @@ -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. diff --git a/src/store/index.js b/src/store/index.js index d6c09b22c..f3e3cf96a 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -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); }, diff --git a/src/ux-components/list-button-horizontal/list-button-horizontal.vue b/src/ux-components/list-button-horizontal/list-button-horizontal.vue index 5bcfcc706..4c9670097 100644 --- a/src/ux-components/list-button-horizontal/list-button-horizontal.vue +++ b/src/ux-components/list-button-horizontal/list-button-horizontal.vue @@ -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; diff --git a/src/ux-components/list-button/list-button.vue b/src/ux-components/list-button/list-button.vue index cef450bb6..aabb06ae5 100644 --- a/src/ux-components/list-button/list-button.vue +++ b/src/ux-components/list-button/list-button.vue @@ -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; diff --git a/src/ux-components/list-card/list-card.vue b/src/ux-components/list-card/list-card.vue index 002fb14ac..a1c95157f 100644 --- a/src/ux-components/list-card/list-card.vue +++ b/src/ux-components/list-card/list-card.vue @@ -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, };