Added TextTemplates Page and Function

This commit is contained in:
2024-04-14 21:54:23 +02:00
parent f9d7c93d21
commit 34dfb334ec
4 changed files with 156 additions and 4 deletions

View File

@@ -120,6 +120,10 @@ export const useDataStore = defineStore('data', () => {
workingtimes: {
label: "Anwesenheiten",
labelSingle: "Anwesenheit"
},
texttemplates: {
label: "Textvorlagen",
labelSingle: "Textvorlage"
}
}
@@ -1004,7 +1008,7 @@ export const useDataStore = defineStore('data', () => {
}
async function fetchTextTemplates() {
texttemplates.value = (await supabase.from("textTemplates").select().eq('tenant', currentTenant.value)).data
texttemplates.value = (await supabase.from("texttemplates").select().eq('tenant', currentTenant.value)).data
}
async function fetchServices() {