Added modal for successful email action

This commit is contained in:
neviyn 2019-07-26 16:00:00 +01:00
parent 2e63653e78
commit b9341726bd

View File

@ -18,6 +18,22 @@
</button> </button>
</div> </div>
</b-modal> </b-modal>
<b-modal
ref="emailCompleteModal"
class="text-center"
centered
hide-header
hide-footer
>
<div class="modal-header">
<h3 class="modal-title">Email Sent</h3>
</div>
<div class="d-block">
<br />
<p>A CSV of the displayed Observation data has been sent to the configured email address.</p>
<button class="btn" @click="$refs.emailCompleteModal.hide()">OK</button>
</div>
</b-modal>
<b-row class="pb-2"> <b-row class="pb-2">
<b-col> <b-col>
<b-button-group size="sm"> <b-button-group size="sm">
@ -381,6 +397,9 @@ export default {
whom: this.$store.state.search.whom, whom: this.$store.state.search.whom,
person: this.$store.state.search.person person: this.$store.state.search.person
}) })
.then(() => {
this.$refs.emailCompleteModal.show();
})
.catch(error => { .catch(error => {
this.errorStatus = error.response.status; this.errorStatus = error.response.status;
this.errorMessage = error.response.data; this.errorMessage = error.response.data;