Merge pull request #3186 from Safelite/feature/CASH-613
Feature/cash 613 updates
This commit is contained in:
commit
5220ce900f
2 changed files with 21 additions and 0 deletions
|
|
@ -35,6 +35,21 @@
|
||||||
<priceDisplay cmsWidgetName="PriceWidgetItac" :price="cashPrice" />
|
<priceDisplay cmsWidgetName="PriceWidgetItac" :price="cashPrice" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="my-5" ref="nocomp-block">
|
||||||
|
<funnelSubHeader
|
||||||
|
class="mb-4"
|
||||||
|
cmsWidgetName="SubHeaderWidgetNocomp"
|
||||||
|
alignLeft />
|
||||||
|
<textBlock cmsWidgetName="NocompHeaderWidget" fontWeight="bold" />
|
||||||
|
<textBlock cmsWidgetName="NocompCopyWidget" />
|
||||||
|
<priceDisplay
|
||||||
|
cmsWidgetName="PriceWidgetNocomp"
|
||||||
|
:price="cashPrice"
|
||||||
|
class="my-4" />
|
||||||
|
<afterpayBreakout
|
||||||
|
cmsWidgetName="AfterpayBreakoutWidget"
|
||||||
|
:totalAmount="cashPrice" />
|
||||||
|
</div>
|
||||||
<saveProgressModalQuestion
|
<saveProgressModalQuestion
|
||||||
modalWidgetName="SaveProgressModalWidget"
|
modalWidgetName="SaveProgressModalWidget"
|
||||||
modalName="SaveProgressModal"
|
modalName="SaveProgressModal"
|
||||||
|
|
@ -65,6 +80,7 @@ import saveProgressModalQuestion from "@/fmg-components/save-progress-modal-ques
|
||||||
import afterpayBreakout from "../payment-method/afterpay-breakout/afterpay-breakout.vue";
|
import afterpayBreakout from "../payment-method/afterpay-breakout/afterpay-breakout.vue";
|
||||||
import modal from "@/digital-components/modal/modal";
|
import modal from "@/digital-components/modal/modal";
|
||||||
import contentGroupModal from "@/fmg-components/content-group-modal/content-group-modal.vue";
|
import contentGroupModal from "@/fmg-components/content-group-modal/content-group-modal.vue";
|
||||||
|
import textBlock from "@/digital-components/text-block/text-block.vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "coverage-statement",
|
name: "coverage-statement",
|
||||||
|
|
@ -85,6 +101,7 @@ export default {
|
||||||
saveProgressModalQuestion,
|
saveProgressModalQuestion,
|
||||||
afterpayBreakout,
|
afterpayBreakout,
|
||||||
contentGroupModal,
|
contentGroupModal,
|
||||||
|
textBlock,
|
||||||
},
|
},
|
||||||
// Ensure CMS content is fetched during route navigation without depending on `to`/`from`
|
// Ensure CMS content is fetched during route navigation without depending on `to`/`from`
|
||||||
async beforeRouteEnter(to, from, next) {
|
async beforeRouteEnter(to, from, next) {
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,10 @@ export default {
|
||||||
instructionBlocks() {
|
instructionBlocks() {
|
||||||
const answers = this.getCmsContent(this.cmsWidgetName, "Answers");
|
const answers = this.getCmsContent(this.cmsWidgetName, "Answers");
|
||||||
|
|
||||||
|
if (!answers) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
const instructionBlocksRaw = answers.map((ans) => ans.Text);
|
const instructionBlocksRaw = answers.map((ans) => ans.Text);
|
||||||
|
|
||||||
const instructionBlocksAsTokens = instructionBlocksRaw.map((raw) =>
|
const instructionBlocksAsTokens = instructionBlocksRaw.map((raw) =>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue