Added Tenant Changing in App
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user