Removed old way of passing alert headline and body text from page level component to sub-components

This commit is contained in:
Leah Schumann 2022-04-08 16:22:35 -04:00
parent 1800f596af
commit 73745fd24a
3 changed files with 3 additions and 38 deletions

View file

@ -9,7 +9,7 @@
<funnelHeader cmsWidgetName="FunnelHeaderWidget" ref="funnelHeader" />
<vehicleBanner ref="vehicleBanner" :displayGenericVehicleImage=false />
<funnelSubHeader cmsWidgetName="FunnelSubHeaderWidget" ref="funnelSubHeader" />
<customerQuestions ref="customerQuestions" v-model="customerQuestions" :alertNotifications="{alertVerification: alertVerificationWidget, alertNoMatchWarning: alertNoMatchWarningWidget}" />
<customerQuestions ref="customerQuestions" v-model="customerQuestions" />
<funnel-footer
cmsWidgetName="FunnelFooterWidget"
ref="funnelFooter"
@ -55,39 +55,6 @@ export default {
// Call the "next" function to complete the transition to this page.
next((vm) => {
vm.setCmsContent(resultMap.cmsContent);
vm.alertVerificationWidget = {
headline: resultMap.cmsContent.AlertVerificationWarningWidget.HeadlineText,
copy: resultMap.cmsContent.AlertVerificationWarningWidget.BodyText,
};
vm.alertNoMatchWarningWidget = {
headline: resultMap.cmsContent.AlertNoMatchWarningWidget.HeadlineText,
copy: resultMap.cmsContent.AlertNoMatchWarningWidget.BodyText,
}
// vm.$refs.funnelHeader.initializeComponent(
// resultMap.cmsContent.FunnelHeaderWidget
// );
// vm.$refs.vehicleBanner.initializeComponent(
// resultMap.cmsContent.VehicleBannerWidget
// );
// vm.$refs.funnelSubHeader.initializeComponent(
// resultMap.cmsContent.FunnelSubHeaderWidget
// );
// vm.$refs.funnelFooter.initializeComponent(
// resultMap.cmsContent.FunnelFooterWidget
// );
// vm.$refs.customerQuestions.initializeComponent([
// resultMap.cmsContent.StreetAddressQuestionWidget,
// resultMap.cmsContent.CityQuestionWidget,
// resultMap.cmsContent.StateQuestionWidget,
// resultMap.cmsContent.ZipQuestionWidget,
// resultMap.cmsContent.AlertVerificationWarningWidget,
// resultMap.cmsContent.AlertNoMatchWarningWidget,
// resultMap.cmsContent.FirstNameQuestionWidget,
// resultMap.cmsContent.LastNameQuestionWidget,
// resultMap.cmsContent.EmailAddressQuestionWidget,
// ]
// );
});
},
data() {

View file

@ -64,8 +64,7 @@ export default ({
zip: "",
}),
},
validationRules: String,
alertNotifications: {},
validationRules: String,
},
data() {
return {

View file

@ -51,8 +51,7 @@ export default ({
}
}),
},
validationRules: String,
alertNotifications: {},
validationRules: String,
},
computed: {
customerModel: {