Added modal for successful email action
This commit is contained in:
parent
2e63653e78
commit
b9341726bd
@ -18,6 +18,22 @@
|
||||
</button>
|
||||
</div>
|
||||
</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-col>
|
||||
<b-button-group size="sm">
|
||||
@ -381,6 +397,9 @@ export default {
|
||||
whom: this.$store.state.search.whom,
|
||||
person: this.$store.state.search.person
|
||||
})
|
||||
.then(() => {
|
||||
this.$refs.emailCompleteModal.show();
|
||||
})
|
||||
.catch(error => {
|
||||
this.errorStatus = error.response.status;
|
||||
this.errorMessage = error.response.data;
|
||||
|
Loading…
Reference in New Issue
Block a user