Minor code cleanup

This commit is contained in:
Leah Schumann 2022-03-22 08:51:41 -04:00
parent 15b23c43f1
commit bf2c4d60cc
4 changed files with 6 additions and 29 deletions

View file

@ -43,8 +43,8 @@ export default {
isDisabled: Boolean,
isRequired: Boolean,
disableAutoFill: Boolean,
hasIcon: Boolean,// If input has an icon
iconRight: Boolean,// Place icon on right side of text input, otherwise default is left if hasIcon prop is used
hasIcon: Boolean, // If input has an icon
iconRight: Boolean, // Place icon on right side of text input, otherwise default is left if hasIcon prop is used
hasError: Boolean,
mask: {
type: String,
@ -55,16 +55,9 @@ export default {
setup(props) {
const fieldOptions = {
type: "text",
value: props.modelValue, // EX: "Single" or "Passenger"
//potentialInitialValue: props.selectedValues,
value: props.modelValue,
};
// Set initialValue for validation setup if pre-selected
// NOTE: props.selectedValues could be an array of strings, or an array of integers...
//if (props.selectedValues && (props.selectedValues.includes(props.value) || props.selectedValues.includes(parseInt(props.value)))) {
//fieldOptions['initialValue'] = fieldOptions.potentialInitialValue;
//}
const {
errorMessage,
handleBlur,

View file

@ -31,9 +31,6 @@ import { Form } from "vee-validate";
// Supporting files
import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
import { settleAllPromises } from "@/helpers/layout-helper";
import { storeActions } from "@/constants/store-actions";
import store from "@/store";
export default {
name: "address-lookup",
@ -65,7 +62,8 @@ export default {
vm.$refs.funnelFooter.initializeComponent(
resultMap.cmsContent.FunnelFooterWidget
);
vm.$refs.customerQuestions.initializeComponent([
vm.$refs.customerQuestions.initializeComponent(
[
resultMap.cmsContent.StreetAddressQuestionWidget,
resultMap.cmsContent.CityQuestionWidget,
resultMap.cmsContent.StateQuestionWidget,
@ -75,7 +73,6 @@ export default {
resultMap.cmsContent.FirstNameQuestionWidget,
resultMap.cmsContent.LastNameQuestionWidget,
resultMap.cmsContent.EmailAddressQuestionWidget,
]
);
});
@ -96,13 +93,7 @@ export default {
}
},
methods: {
arePagePrerequisitesValid() {
return store.getters.vehicle.carId !== null;
},
resetDependentState() {
// Invokes
store.dispatch(storeActions.RESET_PARTS_AND_DEPS);
},
},
components: {
funnelHeader,

View file

@ -250,8 +250,6 @@ export default ({
}
}
self.displayVerificationWarning = false;
self.displayNoMatchWarning = false;
}

View file

@ -57,11 +57,6 @@ export default ({
},
validationRules: String,
},
data() {
return {
}
},
setup(props, { emit }) {
// Please do not modify, this "computed" is used to track and report
// this object's property changes to the parent component