From 8e39c6d2f1bcb075b21f79fcff239e208cbe8c26 Mon Sep 17 00:00:00 2001 From: CarlNation Date: Fri, 16 Sep 2022 13:52:08 -0400 Subject: [PATCH] CSR-779 repair button text --- src/layouts/estimate/estimate.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/layouts/estimate/estimate.vue b/src/layouts/estimate/estimate.vue index f38d6b77d..faf2c8ed6 100644 --- a/src/layouts/estimate/estimate.vue +++ b/src/layouts/estimate/estimate.vue @@ -151,6 +151,18 @@ export default { ]; const resultMap = await settleAllPromises(promiseResultMap); next((vm) => { + if (resultMap.cmsContent.FunnelFooterWidget.ForwardButtonText.includes("|")) + { + const forwardTextOption = resultMap.cmsContent.FunnelFooterWidget.ForwardButtonText.split("|"); + if (store.getters.damage.isRepair){ + resultMap.cmsContent.FunnelFooterWidget.ForwardButtonText = forwardTextOption[1] + } + else + { + resultMap.cmsContent.FunnelFooterWidget.ForwardButtonText = forwardTextOption[0] + } + } + vm.setCmsContent(resultMap.cmsContent); }); },