From 66feca3323c4610805d833242165ee6fe67bedc7 Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Fri, 31 Jan 2025 11:15:35 +0100 Subject: [PATCH] Added Archived Changed fucntions baseurl --- composables/useFunctions.js | 2 +- stores/data.js | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/composables/useFunctions.js b/composables/useFunctions.js index 5224a3d..6918d87 100644 --- a/composables/useFunctions.js +++ b/composables/useFunctions.js @@ -1,7 +1,7 @@ import axios from "axios"; import dayjs from "dayjs"; -const baseURL = "http://localhost:3333" /*"https://functions.fedeo.io"*/ +const baseURL = /*"http://localhost:3333"*/ "https://functions.fedeo.io" export const useFunctions = () => { const supabase = useSupabaseClient() diff --git a/stores/data.js b/stores/data.js index c1365f8..54755b2 100644 --- a/stores/data.js +++ b/stores/data.js @@ -2146,6 +2146,15 @@ export const useDataStore = defineStore('data', () => { oldVal = "Ja" newVal = "Nein" } + } else if(key === "archived") { + name = "Archiviert" + if(newVal === true){ + oldVal = "Nein" + newVal = "Ja" + } else if(newVal === false) { + oldVal = "Ja" + newVal = "Nein" + } }