From 03a07c9c62c44c232f67bbd9c50518c85569285a Mon Sep 17 00:00:00 2001 From: Bryan Mauger Date: Mon, 6 Nov 2023 15:43:06 -0500 Subject: [PATCH 1/2] CSR-1396 add recycle modal to cart page. --- src/fmg-components/cart/cart.vue | 18 +++++++++++++++++- src/layouts/payment-method/payment-method.vue | 5 +++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/src/fmg-components/cart/cart.vue b/src/fmg-components/cart/cart.vue index 55516010f..3d46e420f 100644 --- a/src/fmg-components/cart/cart.vue +++ b/src/fmg-components/cart/cart.vue @@ -53,7 +53,7 @@ linkType="text" :text="recycleFeeCartItem.name" href="#!" - @click-event="openModal(recyclingModal)" /> + @click-event="openModal(recyclingModalCmsWidgetName)" /> {{ currencyFormatter.format(recycleFeeCartItem.subTotal) }}
@@ -95,6 +95,9 @@
+ + + @@ -102,6 +105,7 @@ // Components 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"; // Mixins import baseMixin from "@/mixins/base-mixin.js"; @@ -122,6 +126,7 @@ export default { damage: Object, servicePackageOptionsCmsName: String, availableLineItems: Object, + recyclingModalCmsWidgetName: String, }, data() { return { @@ -135,6 +140,9 @@ export default { }; }, methods: { + openModal(modalName) { + this.$refs[modalName].openModal(); + }, toggleClass: function (event) { this.isActive = !this.isActive; }, @@ -668,6 +676,7 @@ export default { components: { textBlock, textLink, + contentGroupModal, }, }; @@ -678,6 +687,12 @@ export default { border-bottom: 1px solid $gray-500; color: $black; } + .modal-body { + h5 { + text-align: center; + border-bottom: none; + } + } .border-bottom { color: $gray; } @@ -751,6 +766,7 @@ export default { } a { order: 3; + margin-right: 100%; } } } diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue index a457e81b5..1b10a1db3 100644 --- a/src/layouts/payment-method/payment-method.vue +++ b/src/layouts/payment-method/payment-method.vue @@ -1,7 +1,7 @@