This commit is contained in:
Leah Schumann 2023-03-15 10:17:11 -04:00
parent 4d8dc49f97
commit d704eee8e8
2 changed files with 8 additions and 17 deletions

View file

@ -263,8 +263,8 @@ export default {
}); });
this.setServiceabilityDetails(serviceabilityDetails.data); this.setServiceabilityDetails(serviceabilityDetails.data);
} },
} },
}, },
components: { components: {
alert, alert,

View file

@ -17,8 +17,6 @@
<script> <script>
import buttonQuestion from "@/digital-components/button-question/button-question"; import buttonQuestion from "@/digital-components/button-question/button-question";
import { useForm, useIsFormTouched, useIsFormDirty, useIsFormValid } from "vee-validate";
export default { export default {
name: "service-type-question", name: "service-type-question",
props: { props: {
@ -33,13 +31,6 @@ export default {
isRecalibrationServiceableInshop: Boolean, isRecalibrationServiceableInshop: Boolean,
isRecalibrationServiceableMobile: Boolean, isRecalibrationServiceableMobile: Boolean,
}, },
setup() {
const form = useForm();
return {
form,
};
},
computed: { computed: {
questionText() { questionText() {
return this.getCmsContent(this.cmsWidgetName, "QuestionText"); return this.getCmsContent(this.cmsWidgetName, "QuestionText");
@ -76,23 +67,23 @@ export default {
!this.isGlassServiceableInshop && !this.isGlassServiceableInshop &&
!this.isRecalibrationServiceableInshop && !this.isRecalibrationServiceableInshop &&
this.isGlassServiceableMobile && this.isGlassServiceableMobile &&
this.isRecalibrationServiceableMobile this.isRecalibrationServiceableMobile
) { ) {
result = "MobileOnly" result = "MobileOnly";
} else if ( } else if (
this.isGlassServiceableInshop && this.isGlassServiceableInshop &&
this.isRecalibrationServiceableInshop && this.isRecalibrationServiceableInshop &&
!this.isGlassServiceableMobile && !this.isGlassServiceableMobile &&
!this.isRecalibrationServiceableMobile !this.isRecalibrationServiceableMobile
) { ) {
result = "InshopOnly" result = "InshopOnly";
} else if ( } else if (
!this.isGlassServiceableInshop && !this.isGlassServiceableInshop &&
!this.isRecalibrationServiceableInshop && !this.isRecalibrationServiceableInshop &&
!this.isGlassServiceableMobile && !this.isGlassServiceableMobile &&
!this.isRecalibrationServiceableMobile !this.isRecalibrationServiceableMobile
) { ) {
result = "None" result = "None";
} }
return result; return result;
@ -114,8 +105,8 @@ export default {
} else { } else {
this.selectedValues = null; this.selectedValues = null;
} }
} },
} },
}, },
components: { components: {
buttonQuestion, buttonQuestion,