CASH-77: fix validation bug
This commit is contained in:
parent
40c34b5388
commit
eaf5951b7f
1 changed files with 6 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
<div class="save-progress-modal-question">
|
<div class="save-progress-modal-question">
|
||||||
<buttonMain
|
<buttonMain
|
||||||
ref="buttonMain"
|
ref="buttonMain"
|
||||||
|
type="button"
|
||||||
v-if="!isProgressSaved"
|
v-if="!isProgressSaved"
|
||||||
:buttonText="buttonText"
|
:buttonText="buttonText"
|
||||||
loaderColor="white"
|
loaderColor="white"
|
||||||
|
|
@ -17,6 +18,7 @@
|
||||||
:ref="modalName"
|
:ref="modalName"
|
||||||
:headerText="modalHeaderText"
|
:headerText="modalHeaderText"
|
||||||
suppressPageScroll
|
suppressPageScroll
|
||||||
|
:onModalClosedCallback="onModalClosed"
|
||||||
:footerButtonText="modalButtonText"
|
:footerButtonText="modalButtonText"
|
||||||
@footer-button-event="saveProgress">
|
@footer-button-event="saveProgress">
|
||||||
<p class="modal-body-inner">{{ modalBodyText }}</p>
|
<p class="modal-body-inner">{{ modalBodyText }}</p>
|
||||||
|
|
@ -78,6 +80,10 @@ export default {
|
||||||
this.modal.openModal();
|
this.modal.openModal();
|
||||||
this.modal.resetButtonStyle();
|
this.modal.resetButtonStyle();
|
||||||
},
|
},
|
||||||
|
onModalClosed() {
|
||||||
|
this.userInput = "";
|
||||||
|
this.modal.resetForm();
|
||||||
|
},
|
||||||
async saveProgress() {
|
async saveProgress() {
|
||||||
// save email address to store
|
// save email address to store
|
||||||
await this.dispatchStoreAction(storeActions.SAVE_EMAIL, this.userInput, false);
|
await this.dispatchStoreAction(storeActions.SAVE_EMAIL, this.userInput, false);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue