diff --git a/src/layouts/vehicle-damage/damage-location-question/damage-location-question.vue b/src/layouts/vehicle-damage/damage-location-question/damage-location-question.vue index 89c9927ab..769241f27 100644 --- a/src/layouts/vehicle-damage/damage-location-question/damage-location-question.vue +++ b/src/layouts/vehicle-damage/damage-location-question/damage-location-question.vue @@ -35,14 +35,14 @@ export default ({ modelValue: Array, isAvailable: Boolean, filterByVehicleCategory: Boolean, - validationRules: Array, name: String, groupName: String, }, methods: { initializeComponent(cmsContent, damageOptions){ - console.log('cmsContent: ', cmsContent) - console.log('damageOptions: ', damageOptions) + // console.log('cmsContent: ', cmsContent) + // console.log('damageOptions: ', damageOptions) + this.questionText = cmsContent.QuestionText; this.answersFromCms = cmsContent.Answers; this.damageOptions = damageOptions; @@ -84,13 +84,15 @@ export default ({ } }, answersToDisplay(){ - return Array.isArray(this.answersFromCms) + const data = Array.isArray(this.answersFromCms) ? this.answersFromCms.filter(ans => { const name = ans.Name.split('-'); return name[0].toUpperCase() === store.getters.vehicle.category && this.damageOptionsMap[name[1]]; }) : []; + console.log('data: ', data); + return data; }, }, components: { diff --git a/src/layouts/vehicle-damage/vehicle-damage.vue b/src/layouts/vehicle-damage/vehicle-damage.vue index 9c55995b7..77e6d2833 100644 --- a/src/layouts/vehicle-damage/vehicle-damage.vue +++ b/src/layouts/vehicle-damage/vehicle-damage.vue @@ -14,10 +14,13 @@ > + +
+ I AM WINDSHIELD DAMAGE TYPE QUESTION + isAvailable is: {{isAvailable}} + +
+ + + \ No newline at end of file diff --git a/src/layouts/vehicle-damage/windshield-options/windshield-options.vue b/src/layouts/vehicle-damage/windshield-options/windshield-options.vue new file mode 100644 index 000000000..36fbc2963 --- /dev/null +++ b/src/layouts/vehicle-damage/windshield-options/windshield-options.vue @@ -0,0 +1,25 @@ + + + \ No newline at end of file