diff --git a/src/iss-components/cart-dropdown/cart-dropdown.vue b/src/iss-components/cart-dropdown/cart-dropdown.vue
index e1a8cb59..498999bf 100644
--- a/src/iss-components/cart-dropdown/cart-dropdown.vue
+++ b/src/iss-components/cart-dropdown/cart-dropdown.vue
@@ -59,21 +59,21 @@
- Subtotal
- $100.00
+ {{ subtotalLabel }}
+ {{ getDisplayed(subTotal) }}
- Sales tax
- $1.23
+ {{ salesTaxLabel }}
+ {{ getDisplayed(salesTax) }}
- Amount due
- $101.23
+ {{ amountDueLabel }}
+ {{ getDisplayed(amountDue) }}
@@ -92,6 +92,7 @@ import textBlock from '@/digital-components/text-block/text-block.vue';
import textLink from '@/ux-components/text-link/text-link.vue';
import getPriceOfLineItems from '@/helpers/price-calculator.js';
import { formatAmountInDollars } from '@/helpers/text-helper.js';
+import widgetFields from '@/constants/cms-widget-fields.js';
const VERIFYING_COVERAGE = 'Verifying coverage';
@@ -101,9 +102,6 @@ export default {
textBlock,
textLink },
props: {
- amountDueLabel: String,
- basePriceLabel: String,
- deductibleLabel: String,
recyclingModalCmsWidgetName: String,
showAsPaid: Boolean
},
@@ -118,7 +116,14 @@ export default {
return {
deductible: currentDeductible,
baseServiceLineItems,
- isExpanded: false
+ isExpanded: false,
+ widget: {
+ amountDue: 'AmountDueTextWidget',
+ deductible: 'DeductibleWidget',
+ basePrice: 'BasePriceWidget',
+ subtotal: 'SubtotalWidget',
+ salesTax: 'SalesTaxWidget'
+ }
};
},
computed: {
@@ -143,6 +148,21 @@ export default {
return this.showAsPaid
? 0
: this.subTotal + this.salesTax;
+ },
+ amountDueLabel() {
+ return this.getCmsContent(this.widget.amountDue, widgetFields.TEXT_BLOCK_WIDGET.TEXT);
+ },
+ deductibleLabel() {
+ return this.getCmsContent(this.widget.deductible, widgetFields.TEXT_BLOCK_WIDGET.TEXT);
+ },
+ basePriceLabel() {
+ return this.getCmsContent(this.widget.basePrice, widgetFields.TEXT_BLOCK_WIDGET.TEXT);
+ },
+ subtotalLabel() {
+ return this.getCmsContent(this.widget.subtotal, widgetFields.TEXT_BLOCK_WIDGET.TEXT);
+ },
+ salesTaxLabel() {
+ return this.getCmsContent(this.widget.salesTax, widgetFields.TEXT_BLOCK_WIDGET.TEXT);
}
},
methods: {
diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue
index 0052026e..95818387 100644
--- a/src/layouts/payment-method/payment-method.vue
+++ b/src/layouts/payment-method/payment-method.vue
@@ -21,9 +21,6 @@
Pia Alert Placeholder
@@ -61,7 +58,6 @@ import { fetchCmsContentForPage } from '@/helpers/cms-content-helper';
import { paymentMethods } from '@/constants/payment-method-constants';
import globalRules from '@/constants/global-rules';
import { Form } from 'vee-validate';
-import widgetFields from '@/constants/cms-widget-fields.js';
import { AppointmentTypeStrings } from '@/constants/schedule-constants';
@@ -109,11 +105,6 @@ export default {
paymentMethodInternalModel: this.getPaymentMethodFromStore(),
rules: {
optionRequired: globalRules.OPTION_REQUIRED
- },
- widget: {
- amountDue: 'AmountDueTextWidget',
- deductible: 'DeductibleWidget',
- basePrice: 'BasePriceWidget'
}
};
},
@@ -132,15 +123,6 @@ export default {
},
paymentMethod() {
return this.paymentMethodInternalModel;
- },
- amountDueText() {
- return this.getCmsContent(this.widget.amountDue, widgetFields.TEXT_BLOCK_WIDGET.TEXT);
- },
- deductibleLabel() {
- return this.getCmsContent(this.widget.deductible, widgetFields.TEXT_BLOCK_WIDGET.TEXT);
- },
- basePriceLabel() {
- return this.getCmsContent(this.widget.basePrice, widgetFields.TEXT_BLOCK_WIDGET.TEXT);
}
},
watch: {