pull damage string into success alert

This commit is contained in:
Kroell 2023-03-09 13:45:00 -05:00
parent 2bb782bfb0
commit e8e419de83

View file

@ -2,18 +2,29 @@
<alert <alert
alertClass="alert-success" alertClass="alert-success"
cmsWidgetName="AlertPerfectMatchInsuranceNotVerified" cmsWidgetName="AlertPerfectMatchInsuranceNotVerified"
:manualCopy="body"
id="perfect-match-alert" id="perfect-match-alert"
aria-label="perfect-match-alert" aria-label="perfect-match-alert"
/> />
</template> </template>
<script> <script>
import alert from '@/ux-components/alert/alert.vue'; import alert from '@/ux-components/alert/alert.vue';
import { getDamageString } from '@/helpers/damage-helper';
export default { export default {
name: 'perfect-match-alert', name: 'perfect-match-alert',
components: { components: {
alert, alert,
}, },
inject: ['vehicleFromLookup'],
computed: {
body() {
return (
this.getCmsContent('AlertPerfectMatchInsuranceNotVerified', 'BodyText')
.replaceAll('{custom:damage}', getDamageString())
);
},
}
}; };
</script> </script>
<style> <style>