diff --git a/webclient/package.json b/webclient/package.json index 3ba5b9415..003be38f9 100644 --- a/webclient/package.json +++ b/webclient/package.json @@ -16,7 +16,8 @@ "swagger-ui-dist": "^5.0.0-alpha.13", "swaggerdark": "github:octycs/SwaggerDark#f02d394c8ff698cdd93e09c2188b058d2d686ca3", "vue": "^3.2.45", - "vue-router": "^4.1.6" + "vue-router": "^4.1.6", + "vue-simple-calendar": "^6.3.1" }, "devDependencies": { "@intlify/unplugin-vue-i18n": "^0.11.0", diff --git a/webclient/src/App.vue b/webclient/src/App.vue index 2df2e49a5..4492eefc3 100644 --- a/webclient/src/App.vue +++ b/webclient/src/App.vue @@ -1,5 +1,6 @@ + + diff --git a/webclient/src/stores/global.ts b/webclient/src/stores/global.ts index 9dc269c34..bb307ac5e 100644 --- a/webclient/src/stores/global.ts +++ b/webclient/src/stores/global.ts @@ -13,6 +13,9 @@ export const useGlobalStore = defineStore({ state: () => ({ search_focused: false, error_message: null as string | null, + calendar: { + open: false, + }, information_modal: { header: null as string | null, body: null as string | null, diff --git a/webclient/src/views/DetailsView.vue b/webclient/src/views/DetailsView.vue index f1f3d02f3..a8a23ad61 100644 --- a/webclient/src/views/DetailsView.vue +++ b/webclient/src/views/DetailsView.vue @@ -11,6 +11,7 @@ import { useI18n } from "vue-i18n"; import { getLocalStorageWithExpiry, removeLocalStorage } from "@/composables/storage"; import { copyCurrentLink, setDescription, setTitle } from "@/composables/common"; import { selectedMap, useDetailsStore } from "@/stores/details"; +import { useGlobalStore } from "@/stores/global"; import { nextTick, onMounted, ref, watch } from "vue"; import { useFetch } from "@/composables/fetch"; import { useRoute } from "vue-router"; @@ -62,6 +63,7 @@ function update() { }); } +const global = useGlobalStore(); const state = useDetailsStore(); const copied = ref(false); // Coordinate picker states @@ -250,7 +252,7 @@ onMounted(() => {