Compute cms without reloading page.
This commit is contained in:
parent
0cddad3cf4
commit
4f53a1fa45
1 changed files with 4 additions and 1 deletions
|
|
@ -36,7 +36,10 @@ export default {
|
|||
return this.customer?.phoneNumber;
|
||||
},
|
||||
smsOptIn() {
|
||||
return this.getCmsContent(this.cmsWidgetName, "SubheaderText");
|
||||
const rawCmsText = this.getCmsContent(this.cmsWidgetName, "SubheaderText");
|
||||
const joinerText = this.customer?.isSmsOptIn ? "in to" : "out of";
|
||||
|
||||
return rawCmsText.replace("{custom:smsOptInJoiner}", joinerText);
|
||||
},
|
||||
},
|
||||
components: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue