diff --git a/layouts/mobile.vue b/layouts/mobile.vue index 314708f..552706d 100644 --- a/layouts/mobile.vue +++ b/layouts/mobile.vue @@ -13,8 +13,9 @@ const { isHelpSlideoverOpen } = useDashboard() const supabase = useSupabaseClient() const router = useRouter() const route = useRoute() +const auth = useAuthStore() -profileStore.initializeData((await supabase.auth.getUser()).data.user.id) +//profileStore.initializeData((await supabase.auth.getUser()).data.user.id) const month = dayjs().format("MM") @@ -64,40 +65,6 @@ const actions = [ ] -const groups = computed(() => - [{ - key: 'actions', - commands: actions - },{ - key: "customers", - label: "Kunden", - commands: dataStore.customers.map(item => { return {id: item.id, label: item.name, to: `/customers/show/${item.id}`}}) - },{ - key: "vendors", - label: "Lieferanten", - commands: dataStore.vendors.map(item => { return {id: item.id, label: item.name, to: `/vendors/show/${item.id}`}}) - },{ - key: "contacts", - label: "Ansprechpartner", - commands: dataStore.contacts.map(item => { return {id: item.id, label: item.fullName, to: `/contacts/show/${item.id}`}}) - },{ - key: "products", - label: "Artikel", - commands: dataStore.products.map(item => { return {id: item.id, label: item.name, to: `/products/show/${item.id}`}}) - },{ - key: "tasks", - label: "Aufgaben", - commands: dataStore.tasks.map(item => { return {id: item.id, label: item.name, to: `/tasks/show/${item.id}`}}) - },{ - key: "plants", - label: "Objekte", - commands: dataStore.plants.map(item => { return {id: item.id, label: item.name, to: `/plants/show/${item.id}`}}) - },{ - key: "projects", - label: "Projekte", - commands: dataStore.projects.map(item => { return {id: item.id, label: item.name, to: `/projects/show/${item.id}`}}) - } - ].filter(Boolean)) const footerLinks = [/*{ label: 'Invite people', icon: 'i-heroicons-plus', @@ -111,36 +78,7 @@ const footerLinks = [/*{ diff --git a/pages/mobile/menu.vue b/pages/mobile/menu.vue index ed47a15..d2c50a8 100644 --- a/pages/mobile/menu.vue +++ b/pages/mobile/menu.vue @@ -4,7 +4,7 @@ definePageMeta({ layout: 'mobile', }) -const profileStore = useProfileStore() +const auth = useAuthStore() @@ -68,14 +68,12 @@ const profileStore = useProfileStore() Unternehmen wechseln - - {{profileStore.tenants.find(i => i.id === option.tenant).name}} - +
+ {{tenant.name}} + Wechseln +