Fixing adas link not working
This commit is contained in:
parent
68a985d4e9
commit
3ed110485c
3 changed files with 21 additions and 4 deletions
|
|
@ -463,7 +463,13 @@ export function setupModalLinks(context) {
|
|||
for (const element of elements) {
|
||||
const target = element.getAttribute('modalTarget');
|
||||
if (target) {
|
||||
element.addEventListener('click', () => context.$refs[target].openModal());
|
||||
console.log('click event');
|
||||
console.log(target)
|
||||
console.log(element)
|
||||
element.addEventListener('click', () =>{
|
||||
console.log('hi');
|
||||
context.$refs[target].openModal()
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@ export default {
|
|||
if (evt.persisted) {
|
||||
setTimeout(() => {
|
||||
window.location.reload();
|
||||
console.log('reload');
|
||||
}, 10);
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -217,6 +217,8 @@ export default {
|
|||
return this.getHeaderTextFromCms('NextStepsWidget');
|
||||
},
|
||||
nextStepsBody() {
|
||||
console.log('next steps body');
|
||||
|
||||
return this.getBodyTextFromCms('NextStepsWidget')?.replaceAll('{custom:damage}', this.damageText);
|
||||
},
|
||||
continueWithSchedulingBodyText() {
|
||||
|
|
@ -314,10 +316,17 @@ export default {
|
|||
} else {
|
||||
this.$refs.siteFooter.updateButtonText('Continue');
|
||||
}
|
||||
},
|
||||
nextStepsBody(newValue, oldValue) {
|
||||
console.log('watching next step');
|
||||
if (newValue !== oldValue){
|
||||
setupModalLinks(this);
|
||||
}
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
this.$refs.loadingModal.showModal();
|
||||
console.log("mounted");
|
||||
setupModalLinks(this);
|
||||
const vm = this;
|
||||
if (this.policyLookupSuccessful
|
||||
|
|
@ -325,6 +334,7 @@ export default {
|
|||
&& this.coveredAndServicePriceAboveOrEqualDeductible) {
|
||||
await useMainStore().registerClaim()?.catch(() => {});
|
||||
}
|
||||
//setupModalLinks(this);
|
||||
vm.$refs.loadingModal.hideModal();
|
||||
},
|
||||
methods: {
|
||||
|
|
@ -374,9 +384,9 @@ export default {
|
|||
);
|
||||
}
|
||||
},
|
||||
openModalAction(modalName) {
|
||||
this.$refs[modalName.args].openModal();
|
||||
},
|
||||
// openModalAction(modalName) {
|
||||
// this.$refs[modalName.args].openModal();
|
||||
// },
|
||||
processIfStatements,
|
||||
getHeaderTextFromCms(cmsWidgetName) {
|
||||
const header = this.getCmsContent(cmsWidgetName, 'HeaderText');
|
||||
|
|
|
|||
Loading…
Reference in a new issue