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
|
<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>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue