INSR-8123: Update some more modals
- Remove modalPosition related code now that all modals are centered - Allow parent components to set text of the close link - Updates styling for specific modals so that they match their Heritage counterparts
This commit is contained in:
parent
7a9aa23814
commit
be86421a7b
10 changed files with 224 additions and 60 deletions
|
|
@ -9,7 +9,3 @@ export const dropdownVariants = Object.freeze({
|
||||||
primary: 'primary',
|
primary: 'primary',
|
||||||
compact: 'compact'
|
compact: 'compact'
|
||||||
});
|
});
|
||||||
export const modalPositions = Object.freeze({
|
|
||||||
center: 'center',
|
|
||||||
edge: 'edge'
|
|
||||||
});
|
|
||||||
|
|
|
||||||
|
|
@ -11,10 +11,7 @@
|
||||||
'hidden.bs.modal': onModalClosed,
|
'hidden.bs.modal': onModalClosed,
|
||||||
'shown.bs.modal': onModalOpened
|
'shown.bs.modal': onModalOpened
|
||||||
}">
|
}">
|
||||||
<div class="modal-dialog"
|
<div class="modal-dialog">
|
||||||
:class="{
|
|
||||||
'modal-dialog-centered': modalPosition === modalPositions.center
|
|
||||||
}">
|
|
||||||
<div
|
<div
|
||||||
class="modal-content"
|
class="modal-content"
|
||||||
role="dialog"
|
role="dialog"
|
||||||
|
|
@ -55,7 +52,7 @@
|
||||||
v-if="displayCloseLink"
|
v-if="displayCloseLink"
|
||||||
class="mt-4 mb-0"
|
class="mt-4 mb-0"
|
||||||
linkType="text"
|
linkType="text"
|
||||||
text="Close window"
|
:text="closeLinkText"
|
||||||
href="#!"
|
href="#!"
|
||||||
@click="closeModal" />
|
@click="closeModal" />
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -68,7 +65,6 @@
|
||||||
import ButtonMain from '@/ux-components/button-main/button-main.vue';
|
import ButtonMain from '@/ux-components/button-main/button-main.vue';
|
||||||
import { Modal } from 'bootstrap';
|
import { Modal } from 'bootstrap';
|
||||||
import { useForm } from 'vee-validate';
|
import { useForm } from 'vee-validate';
|
||||||
import { modalPositions } from '@/constants/component-variants';
|
|
||||||
import textLink from '@/ux-components/text-link/text-link.vue';
|
import textLink from '@/ux-components/text-link/text-link.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
@ -92,10 +88,6 @@ export default {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'success'
|
default: 'success'
|
||||||
},
|
},
|
||||||
modalPosition: {
|
|
||||||
type: String,
|
|
||||||
default: modalPositions.center
|
|
||||||
},
|
|
||||||
allowInvalidSubmit: {
|
allowInvalidSubmit: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
|
|
@ -111,6 +103,10 @@ export default {
|
||||||
displayCloseLink: {
|
displayCloseLink: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
|
},
|
||||||
|
closeLinkText: {
|
||||||
|
type: String,
|
||||||
|
default: 'Close window'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
emits: ['footer-button-event', 'isModalOpened'],
|
emits: ['footer-button-event', 'isModalOpened'],
|
||||||
|
|
@ -127,8 +123,7 @@ export default {
|
||||||
modalId,
|
modalId,
|
||||||
meta,
|
meta,
|
||||||
validate,
|
validate,
|
||||||
resetForm,
|
resetForm
|
||||||
modalPositions
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -186,6 +181,7 @@ export default {
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
padding-right: 1rem;
|
||||||
h5,
|
h5,
|
||||||
strong,
|
strong,
|
||||||
.subheader-text {
|
.subheader-text {
|
||||||
|
|
@ -231,7 +227,8 @@ export default {
|
||||||
&.modal-component {
|
&.modal-component {
|
||||||
.modal-dialog {
|
.modal-dialog {
|
||||||
display: flex;
|
display: flex;
|
||||||
max-width: 37.5rem;
|
width: 37.5rem;
|
||||||
|
max-width: unset;
|
||||||
min-height: auto;
|
min-height: auto;
|
||||||
.modal-content {
|
.modal-content {
|
||||||
box-shadow: 0px 1rem 3rem -1rem rgba(0, 0, 0, 0.25);
|
box-shadow: 0px 1rem 3rem -1rem rgba(0, 0, 0, 0.25);
|
||||||
|
|
@ -240,7 +237,7 @@ export default {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
.modal-content {
|
.modal-content {
|
||||||
margin: 1.5rem auto 0 auto;
|
margin: 0 auto;
|
||||||
.modal-body {
|
.modal-body {
|
||||||
padding: 0 1.5rem 0 1.5rem;
|
padding: 0 1.5rem 0 1.5rem;
|
||||||
.col {
|
.col {
|
||||||
|
|
@ -272,18 +269,10 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&.modal-dialog-centered {
|
|
||||||
.modal-content {
|
|
||||||
box-shadow: 0px 1rem 3rem -1rem rgba(0, 0, 0, 0.25);
|
|
||||||
border: 1px solid;
|
|
||||||
border-radius: 5px;
|
|
||||||
overflow: auto;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.modal-footer {
|
.modal-footer {
|
||||||
border-top: none;
|
border-top: none;
|
||||||
padding: 10px 1.5rem 1.5rem 1.5rem;
|
padding: .625rem 1.5rem 1.5rem 1.5rem;
|
||||||
|
|
||||||
button {
|
button {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
@ -303,6 +292,15 @@ export default {
|
||||||
transition: opacity 0.25s linear;
|
transition: opacity 0.25s linear;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@include media-breakpoint-down(md) {
|
||||||
|
&.modal-component {
|
||||||
|
.modal-dialog {
|
||||||
|
width: auto;
|
||||||
|
max-width: unset;
|
||||||
|
margin: .625rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
body {
|
body {
|
||||||
.modal-backdrop {
|
.modal-backdrop {
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,16 @@
|
||||||
<template>
|
<template>
|
||||||
<modal
|
<modal
|
||||||
:ref="modalName"
|
:ref="modalName"
|
||||||
:modalPosition="modalPositions.center"
|
|
||||||
:headerText="headerText"
|
:headerText="headerText"
|
||||||
:footerButtonText="footerButtonText"
|
:footerButtonText="footerButtonText"
|
||||||
:onModalClosedCallback="resetFormValues"
|
:onModalClosedCallback="resetFormValues"
|
||||||
|
:displayCloseLink="true"
|
||||||
|
:closeLinkText="closeLinkText"
|
||||||
class="contact-details-drawer"
|
class="contact-details-drawer"
|
||||||
@isModalOpened="setModalStatus"
|
@isModalOpened="setModalStatus"
|
||||||
@footerButtonEvent="clickFooterButtonEvent">
|
@footerButtonEvent="clickFooterButtonEvent">
|
||||||
<template v-if="isModalOpened">
|
<template v-if="isModalOpened">
|
||||||
<span class="name-section-label">{{ nameSectionLabel }}</span>
|
<div class="name-section-label">{{ nameSectionLabel }}</div>
|
||||||
<div class="row form-group">
|
<div class="row form-group">
|
||||||
<textboxQuestion
|
<textboxQuestion
|
||||||
class="col-lg-6"
|
class="col-lg-6"
|
||||||
|
|
@ -71,7 +72,6 @@ import { useMainStore } from '@/store';
|
||||||
import globalRules from '@/constants/global-rules.js';
|
import globalRules from '@/constants/global-rules.js';
|
||||||
import MaskaFormattedMasks from '@/constants/maska-masks';
|
import MaskaFormattedMasks from '@/constants/maska-masks';
|
||||||
import widgetFields from '@/constants/cms-widget-fields.js';
|
import widgetFields from '@/constants/cms-widget-fields.js';
|
||||||
import { modalPositions } from '@/constants/component-variants';
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'contact-details-drawer',
|
name: 'contact-details-drawer',
|
||||||
|
|
@ -109,7 +109,6 @@ export default {
|
||||||
phoneNumber: `${globalRules.PHONE_NUMBER_REQUIRED}|${globalRules.PHONE_NUMBER_FORMAT}`,
|
phoneNumber: `${globalRules.PHONE_NUMBER_REQUIRED}|${globalRules.PHONE_NUMBER_FORMAT}`,
|
||||||
extension: `${globalRules.EXTENSION_FORMAT}`
|
extension: `${globalRules.EXTENSION_FORMAT}`
|
||||||
},
|
},
|
||||||
modalPositions,
|
|
||||||
detailsSaved: false
|
detailsSaved: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
@ -132,6 +131,9 @@ export default {
|
||||||
nameSectionLabel() {
|
nameSectionLabel() {
|
||||||
return this.getCmsContent(this.widget.firstNameQuestion, widgetFields.INPUT_QUESTION_WIDGET.QUESTION_TEXT);
|
return this.getCmsContent(this.widget.firstNameQuestion, widgetFields.INPUT_QUESTION_WIDGET.QUESTION_TEXT);
|
||||||
},
|
},
|
||||||
|
closeLinkText() {
|
||||||
|
return this.getCmsContent(this.widget.drawerFooter, widgetFields.FOOTER_WIDGET.BACK_BUTTON_TEXT);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
setModalStatus(isOpened) {
|
setModalStatus(isOpened) {
|
||||||
|
|
@ -203,5 +205,58 @@ export default {
|
||||||
margin-top: .625rem;
|
margin-top: .625rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:deep(.modal-dialog) {
|
||||||
|
.modal-content {
|
||||||
|
padding: 1.25rem 1.25rem 0;
|
||||||
|
.modal-header {
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
.modal-title {
|
||||||
|
padding: 0;
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-body {
|
||||||
|
padding: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-footer {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row-reverse;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: flex-start;
|
||||||
|
padding: 0rem;
|
||||||
|
|
||||||
|
button {
|
||||||
|
background-color: $heritage-blue-primary;
|
||||||
|
color: $white;
|
||||||
|
font-weight: 600;
|
||||||
|
width: 10.75rem;
|
||||||
|
margin-bottom: 1.25rem;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: #00559e;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
margin: .5rem 0 0;
|
||||||
|
font-weight: $font-weight-normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-down(lg) {
|
||||||
|
align-items: center;
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
|
button {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -8,18 +8,23 @@
|
||||||
:headerText="modalHeaderText"
|
:headerText="modalHeaderText"
|
||||||
:footerButtonText="modalFooterText"
|
:footerButtonText="modalFooterText"
|
||||||
buttonVariant="primary"
|
buttonVariant="primary"
|
||||||
|
:displayCloseButton="false"
|
||||||
@isModalOpened="setModalStatus"
|
@isModalOpened="setModalStatus"
|
||||||
@footerButtonEvent="startNewReferral">
|
@footerButtonEvent="startNewReferral">
|
||||||
<p class="mb-2 subheader-text text-center">
|
<p class="continue-subheader">
|
||||||
{{ modalSubHeaderText }}
|
{{ modalSubHeaderText }}
|
||||||
</p>
|
</p>
|
||||||
<buttonMain
|
<buttonMain
|
||||||
id="btnContinueReferral"
|
id="btnContinueReferral"
|
||||||
variant="success"
|
variant="success"
|
||||||
class="mt-2 w-100"
|
class="continue-btn w-100"
|
||||||
:buttonText="modalBodyText"
|
:buttonText="modalBodyText"
|
||||||
@click-event="continueReferral">
|
@click-event="continueReferral">
|
||||||
</buttonMain>
|
</buttonMain>
|
||||||
|
<div class="or-container">
|
||||||
|
<hr/>
|
||||||
|
<span>or</span>
|
||||||
|
</div>
|
||||||
</modal>
|
</modal>
|
||||||
</div>
|
</div>
|
||||||
</transition>
|
</transition>
|
||||||
|
|
@ -58,7 +63,7 @@ export default {
|
||||||
},
|
},
|
||||||
modalSubHeaderText() {
|
modalSubHeaderText() {
|
||||||
return this.getCmsContent('ContinueReferralModalWidget', 'SubheaderText')
|
return this.getCmsContent('ContinueReferralModalWidget', 'SubheaderText')
|
||||||
.replaceAll('{custom:mmFound}', this.getMakeModelString);
|
.replaceAll('{custom:mmFound}', this.getMakeModelString.toUpperCase());
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
@ -82,5 +87,64 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
.continue-modal-container {
|
||||||
|
.continue-subheader {
|
||||||
|
margin-bottom: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.continue-btn {
|
||||||
|
background-color: #098649;
|
||||||
|
}
|
||||||
|
|
||||||
|
.or-container {
|
||||||
|
position: relative;
|
||||||
|
hr {
|
||||||
|
margin: 1.875rem 0 1.25rem;
|
||||||
|
}
|
||||||
|
span {
|
||||||
|
position: absolute;
|
||||||
|
top: -0.75rem;
|
||||||
|
left: 50%;
|
||||||
|
margin-left: -1.625rem;
|
||||||
|
padding: 0 1.125rem;
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.modal) {
|
||||||
|
.modal-dialog {
|
||||||
|
.modal-content {
|
||||||
|
.modal-header {
|
||||||
|
padding: 1.25rem 1rem .625rem;
|
||||||
|
|
||||||
|
.modal-title {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-body {
|
||||||
|
padding: 0rem 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-footer {
|
||||||
|
padding: 0rem 1rem 1rem;
|
||||||
|
|
||||||
|
button {
|
||||||
|
background-color: $heritage-blue-primary;
|
||||||
|
color: $white;
|
||||||
|
font-weight: 600;
|
||||||
|
margin-bottom: 1.25rem;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: #00559e;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@include media-breakpoint-down(md) {
|
||||||
|
margin: 1.625rem 1rem 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -124,13 +124,7 @@ export default {
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@include media-breakpoint-up(xs) {
|
padding: 2rem;
|
||||||
padding-top: 5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
@include media-breakpoint-up(md) {
|
|
||||||
padding-top: 7rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.modal-loader-content-container {
|
.modal-loader-content-container {
|
||||||
min-width: 15rem; // 240px
|
min-width: 15rem; // 240px
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
:displayCloseButton="false"
|
:displayCloseButton="false"
|
||||||
:displayCloseLink="true">
|
:displayCloseLink="true">
|
||||||
<div class="form-test-invalid">
|
<div class="form-test-invalid">
|
||||||
<h5 class="text-center mb-4">
|
<h5>
|
||||||
{{ ModalHeadline }}
|
{{ ModalHeadline }}
|
||||||
</h5>
|
</h5>
|
||||||
<div>
|
<div>
|
||||||
|
|
@ -158,6 +158,10 @@ export default {
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
:deep(.modal) {
|
:deep(.modal) {
|
||||||
|
h5 {
|
||||||
|
font-size: 1.625rem;
|
||||||
|
margin-bottom: .625rem;
|
||||||
|
}
|
||||||
.modal-body {
|
.modal-body {
|
||||||
color: #4d4e53;
|
color: #4d4e53;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,6 @@
|
||||||
:onModalOpenedCallback="onModalOpened"
|
:onModalOpenedCallback="onModalOpened"
|
||||||
:onModalClosedCallback="onModalClosed"
|
:onModalClosedCallback="onModalClosed"
|
||||||
:footerButtonText="modalFooterText"
|
:footerButtonText="modalFooterText"
|
||||||
:modalPosition="'center'"
|
|
||||||
@footerButtonEvent="setZipCode">
|
@footerButtonEvent="setZipCode">
|
||||||
<serviceZipQuestion
|
<serviceZipQuestion
|
||||||
ref="serviceZipCodeQuestion"
|
ref="serviceZipCodeQuestion"
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,8 @@
|
||||||
:headerText="modalHeaderText"
|
:headerText="modalHeaderText"
|
||||||
:onModalOpenedCallback="onModalOpened"
|
:onModalOpenedCallback="onModalOpened"
|
||||||
:footerButtonText="modalFooterText"
|
:footerButtonText="modalFooterText"
|
||||||
:modalPosition="modalPositions.center"
|
:closeLinkText="modalCloseText"
|
||||||
|
:displayCloseLink="true"
|
||||||
:allowInvalidSubmit="true"
|
:allowInvalidSubmit="true"
|
||||||
@footerButtonEvent="updateSelectedProvider">
|
@footerButtonEvent="updateSelectedProvider">
|
||||||
<googleMap
|
<googleMap
|
||||||
|
|
@ -88,6 +89,7 @@
|
||||||
class="d-inline-flex mt-0"
|
class="d-inline-flex mt-0"
|
||||||
role="alert">{{ errorMessage }}</span>
|
role="alert">{{ errorMessage }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
<hr />
|
||||||
</modal>
|
</modal>
|
||||||
</div>
|
</div>
|
||||||
</transition>
|
</transition>
|
||||||
|
|
@ -111,7 +113,7 @@ import { toTitleCase } from '@/helpers/text-helper.js';
|
||||||
import { markRaw } from 'vue';
|
import { markRaw } from 'vue';
|
||||||
import { useMainStore } from '@/store';
|
import { useMainStore } from '@/store';
|
||||||
import widgetFields from '@/constants/cms-widget-fields';
|
import widgetFields from '@/constants/cms-widget-fields';
|
||||||
import { dropdownVariants, modalPositions } from '@/constants/component-variants';
|
import { dropdownVariants } from '@/constants/component-variants';
|
||||||
import errorMessages from '@/constants/error-messages';
|
import errorMessages from '@/constants/error-messages';
|
||||||
import { defineRule } from 'vee-validate';
|
import { defineRule } from 'vee-validate';
|
||||||
import { required } from '@/helpers/validation-rules';
|
import { required } from '@/helpers/validation-rules';
|
||||||
|
|
@ -155,7 +157,6 @@ export default {
|
||||||
shopListButton: markRaw(shopListButton),
|
shopListButton: markRaw(shopListButton),
|
||||||
searchRadiusInMiles: '25',
|
searchRadiusInMiles: '25',
|
||||||
nearbyShops: [],
|
nearbyShops: [],
|
||||||
modalPositions,
|
|
||||||
dropdownVariants,
|
dropdownVariants,
|
||||||
renderServiceZip: true,
|
renderServiceZip: true,
|
||||||
errorMessage: '',
|
errorMessage: '',
|
||||||
|
|
@ -182,6 +183,9 @@ export default {
|
||||||
modalFooterText() {
|
modalFooterText() {
|
||||||
return this.getCmsContent(this.modalWidgetName, widgetFields.CONTENT_GROUP_WIDGET.FOOTER_TEXT);
|
return this.getCmsContent(this.modalWidgetName, widgetFields.CONTENT_GROUP_WIDGET.FOOTER_TEXT);
|
||||||
},
|
},
|
||||||
|
modalCloseText() {
|
||||||
|
return this.getCmsContent(this.modalWidgetName, widgetFields.CONTENT_GROUP_WIDGET.BODY_TEXT);
|
||||||
|
},
|
||||||
modalName() {
|
modalName() {
|
||||||
return this.modalWidgetName;
|
return this.modalWidgetName;
|
||||||
},
|
},
|
||||||
|
|
@ -411,5 +415,33 @@ export default {
|
||||||
margin-bottom: 1.25rem;
|
margin-bottom: 1.25rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
:deep(.modal-dialog) {
|
||||||
|
.modal-content {
|
||||||
|
hr {
|
||||||
|
margin: 1.375rem 0;
|
||||||
|
}
|
||||||
|
.modal-footer {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row-reverse;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: flex-start;
|
||||||
|
|
||||||
|
button {
|
||||||
|
background-color: $green;
|
||||||
|
color: $white;
|
||||||
|
font-weight: 600;
|
||||||
|
width: 10.75rem;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: darken($green, 10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
margin: .5rem 0 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -35,19 +35,18 @@
|
||||||
<modal
|
<modal
|
||||||
ref="recalModal"
|
ref="recalModal"
|
||||||
class="recal-modal"
|
class="recal-modal"
|
||||||
:modalPosition="modalPositions.center"
|
|
||||||
:headerText="recalModalContent.headerText"
|
:headerText="recalModalContent.headerText"
|
||||||
:footerButtonText="recalModalContent.footerButtonText"
|
:footerButtonText="recalModalContent.footerButtonText"
|
||||||
@footerButtonEvent="closeRecalModal">
|
@footerButtonEvent="closeRecalModal">
|
||||||
<div class="recal-modal-subheader">
|
<div class="recal-modal-subheader">
|
||||||
{{ recalModalContent.subHeaderText }}
|
{{ recalModalContent.subHeaderText }}
|
||||||
</div>
|
</div>
|
||||||
<img
|
<img
|
||||||
class="recal-modal-image"
|
class="recal-modal-image"
|
||||||
:src="recalModalContent.image" />
|
:src="recalModalContent.image" />
|
||||||
<div
|
<div
|
||||||
class="recal-modal-body"
|
class="recal-modal-body"
|
||||||
v-html="recalModalContent.bodyText"></div>
|
v-html="recalModalContent.bodyText"></div>
|
||||||
</modal>
|
</modal>
|
||||||
<hr />
|
<hr />
|
||||||
<div id="serviceSummarySection">
|
<div id="serviceSummarySection">
|
||||||
|
|
@ -122,7 +121,6 @@ import {
|
||||||
import { submitWorkOrder } from '@/helpers/order-helper.js';
|
import { submitWorkOrder } from '@/helpers/order-helper.js';
|
||||||
import bailoutMessage from '@/constants/bailoutMessage';
|
import bailoutMessage from '@/constants/bailoutMessage';
|
||||||
import submitType from '@/constants/submit-type';
|
import submitType from '@/constants/submit-type';
|
||||||
import { modalPositions } from '@/constants/component-variants';
|
|
||||||
|
|
||||||
const VERIFYING_COVERAGE = 'Verifying coverage';
|
const VERIFYING_COVERAGE = 'Verifying coverage';
|
||||||
|
|
||||||
|
|
@ -159,8 +157,7 @@ export default {
|
||||||
alertRecalWarning: 'AlertRecalWarningWidget',
|
alertRecalWarning: 'AlertRecalWarningWidget',
|
||||||
editShopLinkText: 'EditShopLinkTextWidget',
|
editShopLinkText: 'EditShopLinkTextWidget',
|
||||||
contactDetails: 'ContactDetailsSectionWidget'
|
contactDetails: 'ContactDetailsSectionWidget'
|
||||||
},
|
}
|
||||||
modalPositions
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -345,7 +342,7 @@ export default {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss" scoped>
|
||||||
.iss-heritage-container-width {
|
.iss-heritage-container-width {
|
||||||
.tpa-submit-container {
|
.tpa-submit-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
@ -392,7 +389,7 @@ export default {
|
||||||
margin-bottom: .625rem;
|
margin-bottom: .625rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal.recal-modal .modal-dialog {
|
:deep(.modal.recal-modal .modal-dialog) {
|
||||||
.modal-header {
|
.modal-header {
|
||||||
justify-content: start;
|
justify-content: start;
|
||||||
margin: 0rem;
|
margin: 0rem;
|
||||||
|
|
@ -403,6 +400,7 @@ export default {
|
||||||
line-height: 1.25rem;
|
line-height: 1.25rem;
|
||||||
text-align: start;
|
text-align: start;
|
||||||
justify-content: start;
|
justify-content: start;
|
||||||
|
padding-left: 0rem;
|
||||||
}
|
}
|
||||||
.btn-close {
|
.btn-close {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
@ -419,7 +417,29 @@ export default {
|
||||||
color: $black;
|
color: $black;
|
||||||
}
|
}
|
||||||
.recal-modal-image {
|
.recal-modal-image {
|
||||||
margin: 1.25rem 0rem
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
margin: 1.25rem 0rem;
|
||||||
|
|
||||||
|
@include media-breakpoint-up(sm) {
|
||||||
|
width: 16.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(md) {
|
||||||
|
width: 23.5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.modal-footer {
|
||||||
|
padding-top: 0;
|
||||||
|
button {
|
||||||
|
background-color: $green;
|
||||||
|
color: $white;
|
||||||
|
font-weight: 600;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: darken($green, 10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -425,6 +425,8 @@ export default {
|
||||||
async loadReferralFromCookie() {
|
async loadReferralFromCookie() {
|
||||||
const issCookie = getISSCookie();
|
const issCookie = getISSCookie();
|
||||||
if (issCookie) {
|
if (issCookie) {
|
||||||
|
this.$refs.continueModal.closeModal();
|
||||||
|
showIssLoadingModal(true);
|
||||||
const cookieReferral = {
|
const cookieReferral = {
|
||||||
referralNumber: issCookie.ReferralNumber,
|
referralNumber: issCookie.ReferralNumber,
|
||||||
responseDate: issCookie.ReferralDate,
|
responseDate: issCookie.ReferralDate,
|
||||||
|
|
@ -446,7 +448,7 @@ export default {
|
||||||
console.error(`Error on loading session from cookie ${error}`);
|
console.error(`Error on loading session from cookie ${error}`);
|
||||||
this.startNewReferral();
|
this.startNewReferral();
|
||||||
} finally {
|
} finally {
|
||||||
this.$refs.continueModal.closeModal();
|
showIssLoadingModal(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue