From 4697556cac819c47d068819b9fc9c3b4ea84e279 Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Thu, 14 Aug 2025 18:07:12 +0100 Subject: Merge confplanner-web and replace fiber with native net/http --- web/stores/error.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 web/stores/error.ts (limited to 'web/stores/error.ts') diff --git a/web/stores/error.ts b/web/stores/error.ts new file mode 100644 index 0000000..2c234f4 --- /dev/null +++ b/web/stores/error.ts @@ -0,0 +1,13 @@ +import { defineStore } from "pinia"; + +export const useErrorStore = defineStore('error', () => { + const error = ref(null as string | null) + const setError = (newError: string) => { + error.value = newError + } + const clearError = () => { + error.value = null + } + + return {error, setError, clearError} +}) -- cgit v1.2.3-70-g09d2