From 2ca9a4b2e792e3b849c9597f2d1dd56c6ea0046b Mon Sep 17 00:00:00 2001 From: hiteshkumar87 Date: Mon, 12 Feb 2024 13:52:18 +0530 Subject: [PATCH 1/6] addOptionalText addOptionalText to make textbox-question more generic --- src/digital-components/textbox-question/textbox-question.vue | 5 +++-- src/layouts/address-lookup/address-lookup.vue | 2 +- .../address-lookup/customer-questions/customer-questions.vue | 2 +- src/layouts/estimate/estimate.vue | 2 +- src/layouts/license-plate-lookup/license-plate-lookup.vue | 2 +- src/layouts/vin-lookup/vin-lookup.vue | 2 +- 6 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/digital-components/textbox-question/textbox-question.vue b/src/digital-components/textbox-question/textbox-question.vue index da41fe10b..cc13231e1 100644 --- a/src/digital-components/textbox-question/textbox-question.vue +++ b/src/digital-components/textbox-question/textbox-question.vue @@ -121,9 +121,10 @@ export default { hideInput: Boolean, centerErrorMessage: Boolean, keyDownHandler: Function, - isEmailOptional: { + addOptionalText: { type: Boolean, default: false, + isRequired: false, }, }, setup(props) { @@ -197,7 +198,7 @@ export default { }, computed: { questionText() { - return this.isEmailOptional + return this.addOptionalText ? this.getCmsContent(this.cmsWidgetName, "QuestionText") + " (optional)" : this.getCmsContent(this.cmsWidgetName, "QuestionText"); }, diff --git a/src/layouts/address-lookup/address-lookup.vue b/src/layouts/address-lookup/address-lookup.vue index 807bdc5ce..079e3c5ca 100644 --- a/src/layouts/address-lookup/address-lookup.vue +++ b/src/layouts/address-lookup/address-lookup.vue @@ -24,7 +24,7 @@ ref="customerQuestions" v-model="customerQuestions" :validationRules="EmailValidationRules" - :isEmailOptional="IsEmailOptional" /> + :addOptionalText="IsEmailOptional" /> + :addOptionalText="isEmailOptional" />
diff --git a/src/layouts/estimate/estimate.vue b/src/layouts/estimate/estimate.vue index d2766f730..f1318e205 100644 --- a/src/layouts/estimate/estimate.vue +++ b/src/layouts/estimate/estimate.vue @@ -55,7 +55,7 @@ :isRequired="!IsEmailOptional" disableAutoFill :validationRules="EmailValidationRules" - :isEmailOptional="IsEmailOptional" /> + :addOptionalText="IsEmailOptional" /> + :addOptionalText="IsEmailOptional" /> diff --git a/src/layouts/vin-lookup/vin-lookup.vue b/src/layouts/vin-lookup/vin-lookup.vue index ae197aeb0..ce8365a53 100644 --- a/src/layouts/vin-lookup/vin-lookup.vue +++ b/src/layouts/vin-lookup/vin-lookup.vue @@ -55,7 +55,7 @@ customInputId="emailAddress" :isRequired="!IsEmailOptional" :validationRules="EmailValidationRules" - :isEmailOptional="IsEmailOptional" /> + :addOptionalText="IsEmailOptional" /> From 8a568dba69c74cde6e6d9ecca905deea18994b18 Mon Sep 17 00:00:00 2001 From: hiteshkumar87 Date: Mon, 12 Feb 2024 15:45:15 +0530 Subject: [PATCH 2/6] Update address-lookup.vue --- src/layouts/address-lookup/address-lookup.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/address-lookup/address-lookup.vue b/src/layouts/address-lookup/address-lookup.vue index 079e3c5ca..807bdc5ce 100644 --- a/src/layouts/address-lookup/address-lookup.vue +++ b/src/layouts/address-lookup/address-lookup.vue @@ -24,7 +24,7 @@ ref="customerQuestions" v-model="customerQuestions" :validationRules="EmailValidationRules" - :addOptionalText="IsEmailOptional" /> + :isEmailOptional="IsEmailOptional" /> Date: Mon, 12 Feb 2024 15:41:43 -0500 Subject: [PATCH 3/6] CSR-1952 revert CSR-1952 see if revert fixes page hanging --- src/fmg-components/cart/cart.vue | 195 +++++++----------- src/layouts/payment-method/payment-method.vue | 10 +- 2 files changed, 82 insertions(+), 123 deletions(-) diff --git a/src/fmg-components/cart/cart.vue b/src/fmg-components/cart/cart.vue index 0e6d993ee..65701db71 100644 --- a/src/fmg-components/cart/cart.vue +++ b/src/fmg-components/cart/cart.vue @@ -13,101 +13,78 @@ {{ getFormattedAmount("", amountDue) }}
-
-
-
- - - {{ getFormattedAmount("", packagePrice) }} - -
- - -
- <{{ cartItem.name - }}> - - - -
- - -
- {{ cartItem.name }} - - - - {{ recycleFeeCartItem.name }} - - {{ getFormattedAmount(cartItem.category, cartItem.subTotal) }} -
- - -
- {{ subtotalText }}{{ getFormattedAmount("", subTotal) }} -
-
- {{ salesTaxText }}{{ getFormattedAmount("", salesTax) }} -
-
- {{ amountPaidText }}{{ getFormattedAmount("", amountPaid) }} -
-
- {{ amountDueText }}{{ getFormattedAmount("", amountDue) }} -
+
+
+ + + {{ getFormattedAmount("", packagePrice) }} + +
+ + +
+ {{ cartItem.name }} + + + +
+ + +
+ {{ cartItem.name }} + + + + {{ recycleFeeCartItem.name }} + + {{ getFormattedAmount(cartItem.category, cartItem.subTotal) }} +
+ + +
+ {{ subtotalText }}{{ getFormattedAmount("", subTotal) }} +
+
+ {{ salesTaxText }}{{ getFormattedAmount("", salesTax) }} +
+
+ {{ amountPaidText }}{{ getFormattedAmount("", amountPaid) }} +
+
+ {{ amountDueText }}{{ getFormattedAmount("", amountDue) }}
-
-
- Promo code <{{ promoCode }}> applied -
@@ -119,7 +96,6 @@ import textLink from "@/ux-components/text-link/text-link"; import textBlock from "@/digital-components/text-block/text-block"; import contentGroupModal from "@/fmg-components/content-group-modal/content-group-modal"; -import promoModalQuestion from "@/layouts/payment-method/promo-modal-question/promo-modal-question"; // Mixins import baseMixin from "@/mixins/base-mixin.js"; @@ -222,12 +198,6 @@ export default { this.$emit("update:modelValue", this.lineItems); }, - getPromoCodeList() { - if (this.$refs["promoModalQuestion"]) { - return this.$refs["promoModalQuestion"].getPromoCodeList(); - } - return []; - }, }, computed: { screenReaderTotalAmountDueText() { @@ -826,23 +796,16 @@ export default { }, deep: true, }, - lineItems: { - handler(newValue) { - this.$emit("update:modelValue", this.lineItems); - }, - deep: true, - }, }, components: { textBlock, textLink, contentGroupModal, - promoModalQuestion, }, }; -