diff --git a/web/src/components/Timeline.vue b/web/src/components/Timeline.vue index 88bfa94..2cf8b97 100644 --- a/web/src/components/Timeline.vue +++ b/web/src/components/Timeline.vue @@ -104,15 +104,18 @@ export default { }, }, methods: { - ...mapActions(['sendMail', 'postComment']), - sendMailAndClear: async function () { - await this.sendMail(this.newMail); + ...mapActions(['fetchShippingVouchers']), + sendMailAndClear: function () { + this.$emit('sendMail', this.newMail); this.newMail = ""; }, - addCommentAndClear: async function () { - await this.postComment(this.newComment); + addCommentAndClear: function () { + this.$emit('addComment', this.newComment); this.newComment = ""; } + }, + mounted() { + this.fetchShippingVouchers(); } };