From 8c981c705eb6ca5f3928a3a61b28dae423648d27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Sun, 1 Mar 2020 21:48:41 +0100 Subject: [PATCH] fixed bug ##205 now for user --- src/components/user/Jobs.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/user/Jobs.vue b/src/components/user/Jobs.vue index 77e322d..bedfa10 100644 --- a/src/components/user/Jobs.vue +++ b/src/components/user/Jobs.vue @@ -72,6 +72,11 @@ 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() },