Added Tenant Changing in App
This commit is contained in:
@@ -4,6 +4,8 @@ definePageMeta({
|
|||||||
layout: 'mobile',
|
layout: 'mobile',
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const profileStore = useProfileStore()
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -38,6 +40,17 @@ definePageMeta({
|
|||||||
Objekte
|
Objekte
|
||||||
</UButton>
|
</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>
|
</UDashboardPanelContent>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user