Change setupModalLinks to setupModalLink for specific ones

When variable gets blown away so does the listener.
Add back in inside watch similar to other modalLinks
This commit is contained in:
Bill Richardson 2024-07-11 13:36:09 -04:00
parent 3a8efac0ea
commit f501601c02

View file

@ -109,6 +109,7 @@ import textBlock from '@/digital-components/text-block/text-block.vue';
// Import Supporting Files
import {
fetchCmsContentForPage,
setupModalLink,
setupModalLinks,
processIfStatements
} from '@/helpers/cms-content-helper.js';
@ -335,8 +336,13 @@ export default {
},
nextStepsBody(newValue, oldValue) {
if (newValue !== oldValue) {
setupModalLinks(this, 'RecalModal');
setupModalLinks(this, 'DeductibleModal');
setupModalLink(this, 'RecalModal');
setupModalLink(this, 'DeductibleModal');
}
},
verifiedItacAlertBody(newValue, oldValue) {
if (newValue !== oldValue) {
setupModalLink(this, 'DeductibleModal');
}
}
},