Added Tenant Changing in App

This commit is contained in:
2025-06-01 18:30:57 +02:00
parent 08f104d4c9
commit ef8e0d0e83

View File

@@ -4,6 +4,8 @@ definePageMeta({
layout: 'mobile',
})
const profileStore = useProfileStore()
</script>
<template>
@@ -38,6 +40,17 @@ definePageMeta({
Objekte
</UButton>
<UDivider class="my-5">Unternehmen wechseln</UDivider>
<UButton
v-for="option in profileStore.ownProfiles"
class="my-1"
variant="outline"
@click="profileStore.changeProfile(option.id)"
>
{{profileStore.tenants.find(i => i.id === option.tenant).name}}
</UButton>
</UDashboardPanelContent>
</template>