diff --git a/spaces/app.vue b/spaces/app.vue index c55e46a..c6e008a 100644 --- a/spaces/app.vue +++ b/spaces/app.vue @@ -8,13 +8,13 @@ const router = useRouter() const route = useRoute() const supabase = useSupabaseClient() const tenants = (await supabase.from("tenants").select()).data +const {loaded, profiles} = storeToRefs(useDataStore()) +const {fetchData, getProfileById} = useDataStore() +const userProfile = user.value ? getProfileById(user.value.id) : {} -const dataStore = useDataStore() -const {loaded} = storeToRefs(useDataStore()) -const {fetchData} = dataStore fetchData() const navLinks = [ @@ -62,6 +62,11 @@ const navLinks = [ label: "Inventar", to: "/inventory", icon: "i-heroicons-square-3-stack-3d" + }, + { + label: "Jobs", + to: "/jobs", + icon: "i-heroicons-square-3-stack-3d" } ] @@ -151,7 +156,7 @@ const items = [ }], [{ label: 'Settings', icon: 'i-heroicons-cog-8-tooth' - }], [{ + }], /*[{ label: 'Documentation', icon: 'i-heroicons-book-open' }, { @@ -160,7 +165,7 @@ const items = [ }, { label: 'Status', icon: 'i-heroicons-signal' - }], [{ + }],*/ [{ label: 'Sign out', icon: 'i-heroicons-arrow-left-on-rectangle', click: () => { @@ -175,12 +180,17 @@ const items = [