CASH-1448 - Updated payment method page to show recal in a modal and updated the CMS text
This commit is contained in:
parent
523977671c
commit
879fc619f1
4 changed files with 24 additions and 5 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
<!-- Modal -->
|
<!-- Modal -->
|
||||||
<div
|
<div
|
||||||
class="modal fade modal-component"
|
class="modal fade modal-component"
|
||||||
:class="modalId"
|
:class="[modalId, { 'recall-show': isRecal }]"
|
||||||
v-on="{ 'hidden.bs.modal': onModalClosed, 'shown.bs.modal': onModalOpened }"
|
v-on="{ 'hidden.bs.modal': onModalClosed, 'shown.bs.modal': onModalOpened }"
|
||||||
:data-bs-backdrop="backdropSetting"
|
:data-bs-backdrop="backdropSetting"
|
||||||
:id="modalId"
|
:id="modalId"
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
@keypress.enter="onEnter"
|
@keypress.enter="onEnter"
|
||||||
aria-hidden="true">
|
aria-hidden="true">
|
||||||
<!--Close modal when clicking other than close button-->
|
<!--Close modal when clicking other than close button-->
|
||||||
<div class="modal-dialog modal-dialog-centered">
|
<div class="modal-dialog" :class="{ 'modal-dialog-centered': !isRecal }">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header mb-0 mt-6">
|
<div class="modal-header mb-0 mt-6">
|
||||||
<label
|
<label
|
||||||
|
|
@ -71,6 +71,10 @@ export default {
|
||||||
onModalClosedCallback: {
|
onModalClosedCallback: {
|
||||||
type: Function,
|
type: Function,
|
||||||
},
|
},
|
||||||
|
isRecal: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
const uuid = uuidv4();
|
const uuid = uuidv4();
|
||||||
|
|
@ -195,6 +199,19 @@ export default {
|
||||||
background-color: $white;
|
background-color: $white;
|
||||||
}
|
}
|
||||||
&.modal-component {
|
&.modal-component {
|
||||||
|
&.recall-show {
|
||||||
|
.modal-dialog {
|
||||||
|
transform: translateX(-50%);
|
||||||
|
left: 50%;
|
||||||
|
right: auto;
|
||||||
|
width: auto;
|
||||||
|
max-width: 600px;
|
||||||
|
@include media-breakpoint-up(md) {
|
||||||
|
top: 10%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.modal-dialog {
|
.modal-dialog {
|
||||||
max-width: 767px;
|
max-width: 767px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,8 @@
|
||||||
:ref="ModalName"
|
:ref="ModalName"
|
||||||
:modalId="ModalName"
|
:modalId="ModalName"
|
||||||
:footerButtonText="ModalCloseButtonText"
|
:footerButtonText="ModalCloseButtonText"
|
||||||
@footer-button-event="footerButtonClick">
|
@footer-button-event="footerButtonClick"
|
||||||
|
:isRecal="isRecal">
|
||||||
<div :class="[isRecal ? 'recal-modal' : '']">
|
<div :class="[isRecal ? 'recal-modal' : '']">
|
||||||
<img :src="ModalImage" class="mw-100 d-flex mx-auto mb-4" alt="" />
|
<img :src="ModalImage" class="mw-100 d-flex mx-auto mb-4" alt="" />
|
||||||
<h5 class="mb-4" v-html="ModalHeadline"></h5>
|
<h5 class="mb-4" v-html="ModalHeadline"></h5>
|
||||||
|
|
|
||||||
|
|
@ -106,7 +106,8 @@
|
||||||
<contentGroupModal
|
<contentGroupModal
|
||||||
ref="RecalModal"
|
ref="RecalModal"
|
||||||
cmsWidgetName="RecalModal"
|
cmsWidgetName="RecalModal"
|
||||||
class="recal-modal" />
|
class="recal-modal"
|
||||||
|
isRecal />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@
|
||||||
<contentGroupModal ref="RainDefenseModal" cmsWidgetName="RainDefenseModal" />
|
<contentGroupModal ref="RainDefenseModal" cmsWidgetName="RainDefenseModal" />
|
||||||
<contentGroupModal ref="FrontWiperModal" cmsWidgetName="FrontWiperModal" />
|
<contentGroupModal ref="FrontWiperModal" cmsWidgetName="FrontWiperModal" />
|
||||||
<contentGroupModal ref="RearWiperModal" cmsWidgetName="RearWiperModal" />
|
<contentGroupModal ref="RearWiperModal" cmsWidgetName="RearWiperModal" />
|
||||||
<contentGroupModal ref="RecalModal" cmsWidgetName="RecalModal" isRecal />
|
<contentGroupModal ref="RecalModal" cmsWidgetName="RecalModal" />
|
||||||
|
|
||||||
<navbar
|
<navbar
|
||||||
cmsWidgetName="FunnelFooterWidget"
|
cmsWidgetName="FunnelFooterWidget"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue