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