From d36bb7ca6bf37c9f35987fa83b22acfb37ffe697 Mon Sep 17 00:00:00 2001 From: Mika Date: Thu, 11 Jul 2024 09:59:44 +0200 Subject: [PATCH] web: rework date picker --- web/src/components/HeaderBar.vue | 60 +++++++++----------------------- web/src/plugins/vuetify.ts | 3 +- 2 files changed, 18 insertions(+), 45 deletions(-) diff --git a/web/src/components/HeaderBar.vue b/web/src/components/HeaderBar.vue index e9c67d7..d6419e6 100644 --- a/web/src/components/HeaderBar.vue +++ b/web/src/components/HeaderBar.vue @@ -31,46 +31,24 @@ >
- - - - +
- - - - +
(""); // Date Picker const addStartDate = ref(); -const addStartDateDisplay = computed(() => - addStartDate.value ? addStartDate.value.toLocaleDateString() : "" -); const addStopDate = ref(); -const addStopDateDisplay = computed(() => - addStopDate.value ? addStopDate.value.toLocaleDateString() : "" -); // // EDIT SECTION diff --git a/web/src/plugins/vuetify.ts b/web/src/plugins/vuetify.ts index 27d13ef..ce81042 100644 --- a/web/src/plugins/vuetify.ts +++ b/web/src/plugins/vuetify.ts @@ -10,7 +10,7 @@ import "vuetify/styles"; // Composables import { createVuetify } from "vuetify"; -import { VNumberInput } from "vuetify/labs/components"; +import { VNumberInput, VDateInput } from "vuetify/labs/components"; // https://vuetifyjs.com/en/introduction/why-vuetify/#feature-guides export default createVuetify({ @@ -31,5 +31,6 @@ export default createVuetify({ }, components: { VNumberInput, + VDateInput, }, });