updates to cancel claim modal
This commit is contained in:
parent
1f1d36f50a
commit
a01e4834fd
2 changed files with 34 additions and 10 deletions
|
|
@ -22,7 +22,7 @@
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<span
|
<span
|
||||||
v-if="headerText"
|
v-if="headerText"
|
||||||
class="modal-title d-flex justify-content-center pb-0 w-100"
|
class="modal-title d-flex pb-0 w-100"
|
||||||
:innerHTML="headerText">
|
:innerHTML="headerText">
|
||||||
</span>
|
</span>
|
||||||
<button
|
<button
|
||||||
|
|
@ -38,6 +38,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<buttonMain
|
<buttonMain
|
||||||
|
v-if="displayFooterButton"
|
||||||
id="modalbtn"
|
id="modalbtn"
|
||||||
ref="modalButtonMain"
|
ref="modalButtonMain"
|
||||||
class="w-100"
|
class="w-100"
|
||||||
|
|
@ -87,6 +88,10 @@ export default {
|
||||||
allowInvalidSubmit: {
|
allowInvalidSubmit: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
|
},
|
||||||
|
displayFooterButton: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
emits: ['footer-button-event', 'isModalOpened'],
|
emits: ['footer-button-event', 'isModalOpened'],
|
||||||
|
|
@ -179,10 +184,11 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-title {
|
.modal-title {
|
||||||
font-weight: 500;
|
font-weight: 400;
|
||||||
font-size: 1.25rem;
|
font-size: 1.25rem;
|
||||||
line-height: 2rem;
|
line-height: 2rem;
|
||||||
color: $black;
|
color: $black;
|
||||||
|
padding-left: 1.5rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.modal-footer {
|
.modal-footer {
|
||||||
|
|
@ -216,6 +222,7 @@ export default {
|
||||||
.modal-content {
|
.modal-content {
|
||||||
margin: 1.5rem auto 0 auto;
|
margin: 1.5rem auto 0 auto;
|
||||||
.modal-body {
|
.modal-body {
|
||||||
|
color: #4d4e53;
|
||||||
padding: 0 1.5rem 0 1.5rem;
|
padding: 0 1.5rem 0 1.5rem;
|
||||||
.col {
|
.col {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
|
@ -253,9 +260,6 @@ export default {
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
.modal-header {
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.modal-footer {
|
.modal-footer {
|
||||||
|
|
|
||||||
|
|
@ -6,18 +6,25 @@
|
||||||
<modal
|
<modal
|
||||||
ref="cancelClaimModal"
|
ref="cancelClaimModal"
|
||||||
:headerText="modalHeaderText"
|
:headerText="modalHeaderText"
|
||||||
:footerButtonText="modalFooterText"
|
|
||||||
buttonVariant="link"
|
|
||||||
@isModalOpened="setModalStatus"
|
@isModalOpened="setModalStatus"
|
||||||
@footerButtonEvent="cancelClaimConfirmation">
|
:displayFooterButton="false">
|
||||||
<div v-html="modalBodyText"></div>
|
<div v-html="modalBodyText"></div>
|
||||||
<buttonMain
|
<buttonMain
|
||||||
id="btnContinueReferral"
|
id="btnContinueReferral"
|
||||||
variant="success"
|
variant="success"
|
||||||
:buttonText="modalBodyText2"
|
:buttonText="modalBodyText2"
|
||||||
class="mt-4 w-100"
|
class="mt-5 w-100"
|
||||||
@clickEvent="returnToClaim">
|
@clickEvent="returnToClaim">
|
||||||
</buttonMain>
|
</buttonMain>
|
||||||
|
<div class="text-center mt-5">
|
||||||
|
<textLink
|
||||||
|
class="cancel-link"
|
||||||
|
linkType="text"
|
||||||
|
text="No, I want to cancel"
|
||||||
|
href="#"
|
||||||
|
@clickEvent="cancelClaimConfirmation">
|
||||||
|
</textLink>
|
||||||
|
</div>
|
||||||
</modal>
|
</modal>
|
||||||
</div>
|
</div>
|
||||||
</transition>
|
</transition>
|
||||||
|
|
@ -26,12 +33,14 @@
|
||||||
<script>
|
<script>
|
||||||
import modal from '@/digital-components/modal/modal.vue';
|
import modal from '@/digital-components/modal/modal.vue';
|
||||||
import ButtonMain from '@/ux-components/button-main/button-main.vue';
|
import ButtonMain from '@/ux-components/button-main/button-main.vue';
|
||||||
|
import textLink from '@/ux-components/text-link/text-link.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'cancel-claim-modal',
|
name: 'cancel-claim-modal',
|
||||||
components: {
|
components: {
|
||||||
ButtonMain,
|
ButtonMain,
|
||||||
modal
|
modal,
|
||||||
|
textLink
|
||||||
},
|
},
|
||||||
emits: ['cancel-claim-confirmation', 'return-to-claim'],
|
emits: ['cancel-claim-confirmation', 'return-to-claim'],
|
||||||
data() {
|
data() {
|
||||||
|
|
@ -74,5 +83,16 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
:deep(.modal) {
|
||||||
|
.modal-title {
|
||||||
|
margin-top: 1rem;
|
||||||
|
}
|
||||||
|
.cancel-link {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-footer {
|
||||||
|
padding-bottom: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue