diff --git a/components/MainNav.vue b/components/MainNav.vue index ba43fca..4d16dd6 100644 --- a/components/MainNav.vue +++ b/components/MainNav.vue @@ -289,19 +289,14 @@ const links = computed(() => { icon: "i-heroicons-cog-8-tooth", children: [ { - label: "Abrechnung", - to: "https://billing.stripe.com/p/login/cN29Eb32Vdx0gOk288", - icon: "i-heroicons-document-currency-euro", - target: "_blank" - },{ label: "Nummernkreise", to: "/settings/numberRanges", icon: "i-heroicons-clipboard-document-list" - },{ + },/*{ label: "Rollen", to: "/roles", icon: "i-heroicons-key" - },{ + },*/{ label: "E-Mail Konten", to: "/settings/emailAccounts", icon: "i-heroicons-envelope", diff --git a/pages/projecttypes/[mode]/[[id]].vue b/pages/projecttypes/[mode]/[[id]].vue index 4e8c338..49304b5 100644 --- a/pages/projecttypes/[mode]/[[id]].vue +++ b/pages/projecttypes/[mode]/[[id]].vue @@ -21,8 +21,6 @@ defineShortcuts({ }) const openTab = ref(0) -const dataStore = useDataStore() -const supabase = useSupabaseClient() const route = useRoute() const router = useRouter() const toast = useToast() @@ -53,9 +51,9 @@ const setKeys = () => { const setupPage = async() => { if(mode.value === "show" ){ - itemInfo.value = await useSupabaseSelectSingle("projecttypes",route.params.id,"*") + itemInfo.value = await useEntities("projecttypes").selectSingle(route.params.id,"*") } else if (mode.value === "edit") { - itemInfo.value = await useSupabaseSelectSingle("projecttypes",route.params.id,"*") + itemInfo.value = await useEntities("projecttypes").selectSingle(route.params.id,"*") } if(mode.value === "create") { @@ -74,7 +72,7 @@ setupPage() const addPhase = () => { itemInfo.value.initialPhases.push({label: '', icon: ''}), - setKeys + setKeys } @@ -99,13 +97,13 @@ const addPhase = () => {