diff --git a/web/src/components/Timeline.vue b/web/src/components/Timeline.vue index 7df89fa..97c8463 100644 --- a/web/src/components/Timeline.vue +++ b/web/src/components/Timeline.vue @@ -73,7 +73,7 @@ import TimelineMail from "@/components/TimelineMail.vue"; import TimelineComment from "@/components/TimelineComment.vue"; import TimelineStateChange from "@/components/TimelineStateChange.vue"; -import {mapGetters} from "vuex"; +import {mapActions, mapGetters} from "vuex"; import TimelineAssignment from "@/components/TimelineAssignment.vue"; import TimelineRelatedItem from "@/components/TimelineRelatedItem.vue"; import TimelineShippingVoucher from "@/components/TimelineShippingVoucher.vue"; @@ -103,6 +103,7 @@ export default { }, }, methods: { + ...mapActions(['fetchShippingVouchers']), sendMailAndClear: function () { this.$emit('sendMail', this.newMail); this.newMail = ""; @@ -112,6 +113,9 @@ export default { this.newComment = ""; } }, + mounted() { + this.fetchShippingVouchers(); + } }; diff --git a/web/src/components/TimelineRelatedItem.vue b/web/src/components/TimelineRelatedItem.vue index 8d24fc9..c17a3a8 100644 --- a/web/src/components/TimelineRelatedItem.vue +++ b/web/src/components/TimelineRelatedItem.vue @@ -11,10 +11,10 @@
-
+