+
diff --git a/src/layouts/vehicle-style/vehicle-style.vue b/src/layouts/vehicle-style/vehicle-style.vue
index d7b37b4b0..c5aec920c 100644
--- a/src/layouts/vehicle-style/vehicle-style.vue
+++ b/src/layouts/vehicle-style/vehicle-style.vue
@@ -27,6 +27,7 @@ import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
import { settleAllPromises } from "@/helpers/layout-helper";
import { storeActions } from "@/constants/store-actions";
import store from "@/store";
+import { storeMutations } from "@/constants/store-mutations";
export default {
name: "vehicle-style",
@@ -101,6 +102,9 @@ export default {
// Invokes
store.dispatch(storeActions.RESET_DAMAGE_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, []);
},
},
diff --git a/src/layouts/vehicle-year/vehicle-year.vue b/src/layouts/vehicle-year/vehicle-year.vue
index 460c8ced4..563ecb31d 100644
--- a/src/layouts/vehicle-year/vehicle-year.vue
+++ b/src/layouts/vehicle-year/vehicle-year.vue
@@ -93,6 +93,7 @@ export default {
store.commit(storeMutations.UPDATE_STYLE, null);
store.commit(storeMutations.UPDATE_CAR_ID, null);
store.commit(storeMutations.UPDATE_VEHICLE_CATEGORY, null);
+
// Invokes
store.dispatch(storeActions.RESET_DAMAGE_STATE_AND_DEPENDENCIES);
diff --git a/src/router/router-constants/routing-table.js b/src/router/router-constants/routing-table.js
index 87818ebe7..c9dc7ba4d 100644
--- a/src/router/router-constants/routing-table.js
+++ b/src/router/router-constants/routing-table.js
@@ -61,19 +61,14 @@ const routingTable = [
scenario: navigationScenarios.SELECTED_DAMAGE_WITH_SINGLE_PART,
destinationFmgPageValue: fmgPageValues.REVEAL,
},
- ],
- },
- {
- fmgPageValue: fmgPageValues.VEHICLE_DAMAGE,
- maps: [
- {
- scenario: navigationScenarios.CLICKED_BACK,
- destinationFmgPageValue: fmgPageValues.VEHICLE_STYLE,
- },
{
scenario: navigationScenarios.SELECTED_DAMAGE_WITH_MULTIPLE_PARTS,
destinationFmgPageValue: fmgPageValues.VEHICLE_PARTS,
},
+ {
+ scenario: navigationScenarios.SELECTED_DAMAGE_WITH_PART_QUESTIONS,
+ destinationFmgPageValue: fmgPageValues.PART_QUESTIONS,
+ },
],
},
{
@@ -89,19 +84,6 @@ const routingTable = [
},
],
},
- {
- fmgPageValue: fmgPageValues.VEHICLE_DAMAGE,
- maps: [
- {
- scenario: navigationScenarios.CLICKED_BACK,
- destinationFmgPageValue: fmgPageValues.VEHICLE_STYLE,
- },
- {
- scenario: navigationScenarios.SELECTED_DAMAGE_WITH_PART_QUESTIONS,
- destinationFmgPageValue: fmgPageValues.PART_QUESTIONS,
- },
- ],
- },
];
export { routingTable };
diff --git a/src/styles/common-error-styles.scss b/src/styles/common-error-styles.scss
index 2c26e69d7..42c8e499c 100644
--- a/src/styles/common-error-styles.scss
+++ b/src/styles/common-error-styles.scss
@@ -44,6 +44,12 @@
border: 1px solid transparent;
}
}
+ select {
+ background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8.89' xml:space='preserve'%3e%3cpath d='M8 8.89c-.24 0-.46-.09-.63-.26L.26 1.53a.901.901 0 0 1 0-1.27C.43.1.66 0 .9 0s.47.1.64.26L8 6.74 14.47.27c.17-.17.4-.27.64-.27s.47.1.63.27c.17.17.26.4.26.64s-.1.47-.27.63l-7.1 7.09a.86.86 0 0 1-.63.26z' fill='%23d4281c'/%3e%3c/svg%3e");
+ background-repeat: no-repeat;
+ background-position: right 0.75rem center;
+ background-size: 16px 12px;
+ }
}
}
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 6d1cde2d4..c9f0f287c 100644
--- a/src/ux-components/list-button-horizontal/list-button-horizontal.vue
+++ b/src/ux-components/list-button-horizontal/list-button-horizontal.vue
@@ -146,6 +146,7 @@ export default {
&:checked + label {
background: $blue-100;
box-shadow: 0 0 0 1px $blue;
+ outline: none;
z-index: 2;
}
&:checked + label p:first-child {
diff --git a/src/ux-components/list-card/list-card.vue b/src/ux-components/list-card/list-card.vue
index 29b6fc2ee..e57fb861f 100644
--- a/src/ux-components/list-card/list-card.vue
+++ b/src/ux-components/list-card/list-card.vue
@@ -2,7 +2,11 @@
![]()
- {{buttonLabel}}
+ {{ buttonLabel }}
-
- {{buttonLabelSubCopy}}
+
+ {{ buttonLabelSubCopy }}
{{ buttonLabel }}
@@ -70,18 +78,30 @@ export default {
colLength: String,
validationRules: String,
selectedValues: [Array, String],
+ modelValue: Object,
hasError: Boolean,
},
- data(){
+ data() {
return {
checkValue: [Boolean, String],
}
},
- created(){
- if(Array.isArray(this.selectedValues)){
- this.checkValue = this.isMultiSelect ? this.selectedValues.includes(this.value) : this.selectedValues[0];
+ created() {
+ if (Array.isArray(this.selectedValues)) {
+ this.checkValue = this.isMultiSelect
+ ? this.selectedValues.includes(this.value)
+ : this.selectedValues[0];
}
},
+ watch: {
+ // Changing this will impact pre-selection data loads on vehicle-parts.
+ // If changed, please regression test that vehicle-parts data still loads correctly with previous selections.
+ modelValue(newVal) {
+ if (newVal !== undefined) {
+ this.checkValue = newVal.value;
+ }
+ },
+ },
computed: {
getLabelClasses() {
if (this.isWide) {
@@ -96,14 +116,18 @@ export default {
},
},
methods: {
- handleCheckChange(newValue, oldValue){
- const isInitialization = typeof(oldValue) === 'function';
+ handleCheckChange(newValue, oldValue) {
+ const isInitialization = typeof oldValue === "function";
if (!isInitialization) {
- const emitEvent = { checkValue: this.checkValue, value: this.value.toString(), buttonId: this.buttonID.toString() };
- this.$emit('isCheckedChanged', emitEvent);
- this.$emit('update:modelValue', emitEvent);
+ const emitEvent = {
+ checkValue: this.checkValue,
+ value: this.value.toString(),
+ buttonId: this.buttonID.toString(),
+ };
+ this.$emit("isCheckedChanged", emitEvent);
+ this.$emit("update:modelValue", emitEvent);
}
- }
+ },
},
setup(props) {
const inputType = props.isMultiSelect ? "checkbox" : "radio";
@@ -133,10 +157,12 @@ export default {
\ No newline at end of file
+