From e708498818055f6e9d87ff9c12078a6119cbe6ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Sun, 1 Mar 2020 21:45:11 +0100 Subject: [PATCH] fixed bug ##205 --- src/components/vorstand/ServiceManagement.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/vorstand/ServiceManagement.vue b/src/components/vorstand/ServiceManagement.vue index 1e4d562..6943b70 100644 --- a/src/components/vorstand/ServiceManagement.vue +++ b/src/components/vorstand/ServiceManagement.vue @@ -77,6 +77,12 @@ export default { } }, created() { + for (let intDate = 1; intDate < 7; intDate++) { + if (new Date(this.date.getFullYear(), this.date.getMonth(), intDate).getDay() === 3) + if (this.date.getDate() < intDate) + this.date = new Date(this.date.getFullYear(), this.date.getMonth(), 0) + } + this.createMonth(this.date) this.getAllUsers() }, @@ -111,7 +117,8 @@ export default { computed: { ...mapGetters({ month: 'sm/month' - }) + }), + } }