diff --git a/frontend/src/views/Home.vue b/frontend/src/views/Home.vue index 91c0074..c60fe27 100644 --- a/frontend/src/views/Home.vue +++ b/frontend/src/views/Home.vue @@ -35,6 +35,7 @@ > + diff --git a/frontend/src/views/ViewObservations.vue b/frontend/src/views/ViewObservations.vue index 352b77b..840309e 100644 --- a/frontend/src/views/ViewObservations.vue +++ b/frontend/src/views/ViewObservations.vue @@ -17,6 +17,21 @@ Dismiss + + + + Sending + + + + Processing data and sending to the configured email address. + import Vue from "vue"; import "vue-awesome/icons/search"; +import "vue-awesome/icons/spinner" import ObservationEntry from "../components/ObservationEntry.vue"; import ObservationSearchBar from "../components/ObservationSearchBar"; @@ -388,6 +404,7 @@ export default { this.startDate = moment().subtract(amount, timeType); }, sendEmail: function() { + this.$refs.emailSendingModal.show(); Vue.axios .post("/observations/email", { site: this.$store.state.search.site, @@ -398,9 +415,11 @@ export default { person: this.$store.state.search.person }) .then(() => { + this.$refs.emailSendingModal.hide(); this.$refs.emailCompleteModal.show(); }) .catch(error => { + this.$refs.emailSendingModal.hide(); this.errorStatus = error.response.status; this.errorMessage = error.response.data; this.$refs.errorModal.show(); @@ -418,6 +437,8 @@ export default { position: relative; text-align: center; } + +/*noinspection CssUnusedSymbol*/ .scorewarning { background-color: red; }
Processing data and sending to the configured email address.