update to account for bootstrap issue with modal called from modal
This commit is contained in:
parent
5a816fec55
commit
a4bfdd381e
1 changed files with 17 additions and 5 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
<modal
|
<modal
|
||||||
:ref="ModalName"
|
:ref="ModalName"
|
||||||
:modalId="ModalName"
|
:modalId="ModalName"
|
||||||
|
:onModalClosedCallback="onModalClosed"
|
||||||
:footerButtonText="ModalCloseButtonText"
|
:footerButtonText="ModalCloseButtonText"
|
||||||
@footerButtonEvent="footerButtonClick">
|
@footerButtonEvent="footerButtonClick">
|
||||||
<h5 class="text-center mb-4">
|
<h5 class="text-center mb-4">
|
||||||
|
|
@ -35,6 +36,11 @@ export default {
|
||||||
showSteeringLink: Boolean
|
showSteeringLink: Boolean
|
||||||
},
|
},
|
||||||
emits: ['openSteering'],
|
emits: ['openSteering'],
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
clickedSteeringLink: false
|
||||||
|
};
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
ModalName() {
|
ModalName() {
|
||||||
return this.cmsWidgetName;
|
return this.cmsWidgetName;
|
||||||
|
|
@ -63,12 +69,18 @@ export default {
|
||||||
openModal() {
|
openModal() {
|
||||||
this.$refs[this.ModalName].openModal();
|
this.$refs[this.ModalName].openModal();
|
||||||
},
|
},
|
||||||
|
onModalClosed() {
|
||||||
|
if (this.clickedSteeringLink) {
|
||||||
|
this.$emit('openSteering');
|
||||||
|
this.clickedSteeringLink = false;
|
||||||
|
}
|
||||||
|
},
|
||||||
footerButtonClick() {
|
footerButtonClick() {
|
||||||
this.$refs[this.ModalName].closeModal();
|
this.$refs[this.ModalName].closeModal();
|
||||||
},
|
},
|
||||||
openSteeringModal() {
|
openSteeringModal() {
|
||||||
|
this.clickedSteeringLink = true;
|
||||||
this.$refs[this.ModalName].closeModal();
|
this.$refs[this.ModalName].closeModal();
|
||||||
this.$emit('openSteering');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue