Minor code cleanup
This commit is contained in:
parent
15b23c43f1
commit
bf2c4d60cc
4 changed files with 6 additions and 29 deletions
|
|
@ -43,8 +43,8 @@ export default {
|
||||||
isDisabled: Boolean,
|
isDisabled: Boolean,
|
||||||
isRequired: Boolean,
|
isRequired: Boolean,
|
||||||
disableAutoFill: Boolean,
|
disableAutoFill: Boolean,
|
||||||
hasIcon: Boolean,// If input has an icon
|
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
|
iconRight: Boolean, // Place icon on right side of text input, otherwise default is left if hasIcon prop is used
|
||||||
hasError: Boolean,
|
hasError: Boolean,
|
||||||
mask: {
|
mask: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|
@ -55,16 +55,9 @@ export default {
|
||||||
setup(props) {
|
setup(props) {
|
||||||
const fieldOptions = {
|
const fieldOptions = {
|
||||||
type: "text",
|
type: "text",
|
||||||
value: props.modelValue, // EX: "Single" or "Passenger"
|
value: props.modelValue,
|
||||||
//potentialInitialValue: props.selectedValues,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// 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 {
|
const {
|
||||||
errorMessage,
|
errorMessage,
|
||||||
handleBlur,
|
handleBlur,
|
||||||
|
|
|
||||||
|
|
@ -31,9 +31,6 @@ import { Form } from "vee-validate";
|
||||||
// Supporting files
|
// Supporting files
|
||||||
import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
|
import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
|
||||||
import { settleAllPromises } from "@/helpers/layout-helper";
|
import { settleAllPromises } from "@/helpers/layout-helper";
|
||||||
import { storeActions } from "@/constants/store-actions";
|
|
||||||
import store from "@/store";
|
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "address-lookup",
|
name: "address-lookup",
|
||||||
|
|
@ -65,7 +62,8 @@ export default {
|
||||||
vm.$refs.funnelFooter.initializeComponent(
|
vm.$refs.funnelFooter.initializeComponent(
|
||||||
resultMap.cmsContent.FunnelFooterWidget
|
resultMap.cmsContent.FunnelFooterWidget
|
||||||
);
|
);
|
||||||
vm.$refs.customerQuestions.initializeComponent([
|
vm.$refs.customerQuestions.initializeComponent(
|
||||||
|
[
|
||||||
resultMap.cmsContent.StreetAddressQuestionWidget,
|
resultMap.cmsContent.StreetAddressQuestionWidget,
|
||||||
resultMap.cmsContent.CityQuestionWidget,
|
resultMap.cmsContent.CityQuestionWidget,
|
||||||
resultMap.cmsContent.StateQuestionWidget,
|
resultMap.cmsContent.StateQuestionWidget,
|
||||||
|
|
@ -75,7 +73,6 @@ export default {
|
||||||
resultMap.cmsContent.FirstNameQuestionWidget,
|
resultMap.cmsContent.FirstNameQuestionWidget,
|
||||||
resultMap.cmsContent.LastNameQuestionWidget,
|
resultMap.cmsContent.LastNameQuestionWidget,
|
||||||
resultMap.cmsContent.EmailAddressQuestionWidget,
|
resultMap.cmsContent.EmailAddressQuestionWidget,
|
||||||
|
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
@ -96,13 +93,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
arePagePrerequisitesValid() {
|
|
||||||
return store.getters.vehicle.carId !== null;
|
|
||||||
},
|
|
||||||
resetDependentState() {
|
|
||||||
// Invokes
|
|
||||||
store.dispatch(storeActions.RESET_PARTS_AND_DEPS);
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
funnelHeader,
|
funnelHeader,
|
||||||
|
|
|
||||||
|
|
@ -250,8 +250,6 @@ export default ({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
self.displayVerificationWarning = false;
|
self.displayVerificationWarning = false;
|
||||||
self.displayNoMatchWarning = false;
|
self.displayNoMatchWarning = false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -57,11 +57,6 @@ export default ({
|
||||||
},
|
},
|
||||||
validationRules: String,
|
validationRules: String,
|
||||||
},
|
},
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
|
||||||
setup(props, { emit }) {
|
setup(props, { emit }) {
|
||||||
// Please do not modify, this "computed" is used to track and report
|
// Please do not modify, this "computed" is used to track and report
|
||||||
// this object's property changes to the parent component
|
// this object's property changes to the parent component
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue