aboutsummaryrefslogtreecommitdiffstats
path: root/web/stores/conference.ts
diff options
context:
space:
mode:
Diffstat (limited to 'web/stores/conference.ts')
-rw-r--r--web/stores/conference.ts18
1 files changed, 18 insertions, 0 deletions
diff --git a/web/stores/conference.ts b/web/stores/conference.ts
new file mode 100644
index 0000000..2dbe82a
--- /dev/null
+++ b/web/stores/conference.ts
@@ -0,0 +1,18 @@
+import { useLocalStorage } from "@vueuse/core";
+import { defineStore } from "pinia";
+
+export const useConferenceStore = defineStore('conference', () => {
+ const id = useLocalStorage('conference/id', null)
+ const title = useLocalStorage('conference/title', null)
+ const venue = useLocalStorage('conference/venue', null)
+ const city = useLocalStorage('conference/city', null)
+
+ const clear = () => {
+ id.value = null
+ title.value = null
+ venue.value = null
+ city.value = null
+ }
+
+ return {id, title, venue, city, clear}
+})