-
+
@@ -28,9 +28,6 @@ export default {
name: "vehicle-year",
data() {
return {
- funnelSubHeaderWidget: {},
- funnelHeaderWidget: {},
- vehicleBannerWidget: {},
selectedYear: null,
};
},
@@ -54,12 +51,11 @@ export default {
},
];
settleAllPromises(promiseResultMap).then((resultMap) => {
-
// Call the "next" function to complete the transition to this page.
next((vm) => {
- vm.funnelSubHeaderWidget = resultMap.cmsContent.FunnelSubHeaderWidget[0];
- vm.funnelHeaderWidget = resultMap.cmsContent.FunnelHeaderWidget[0];
- vm.vehicleBannerWidget = resultMap.cmsContent.VehicleBannerWidget[0];
+ vm.$refs.funnelSubHeader.initializeComponent(resultMap.cmsContent.FunnelSubHeaderWidget[0]);
+ vm.$refs.funnelHeader.initializeComponent(resultMap.cmsContent.FunnelHeaderWidget[0]);
+ vm.$refs.vehicleBanner.initializeComponent(resultMap.cmsContent.VehicleBannerWidget[0]);
vm.$refs.yearQuestion.initializeComponent(resultMap.cmsContent.RadioQuestionWidget[0], resultMap.yearQuestionInitialData);
});
});
diff --git a/src/layouts/vehicle-year/year-question/year-question.vue b/src/layouts/vehicle-year/year-question/year-question.vue
index a0ec966b5..1a4a80279 100644
--- a/src/layouts/vehicle-year/year-question/year-question.vue
+++ b/src/layouts/vehicle-year/year-question/year-question.vue
@@ -10,8 +10,8 @@