pull damage string into success alert
This commit is contained in:
parent
2bb782bfb0
commit
e8e419de83
1 changed files with 11 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue