Changed to new Layout System
This commit is contained in:
@@ -32,27 +32,16 @@ const isLight = computed({
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UDashboardNavbar title="Einstellungen">
|
||||
|
||||
</UDashboardNavbar>
|
||||
<UTabs
|
||||
:items="items"
|
||||
class="h-100"
|
||||
class="h-100 p-5"
|
||||
>
|
||||
<template #item="{item}">
|
||||
<UCard class="mt-5">
|
||||
<div v-if="item.label === 'Profil'">
|
||||
<div v-if="dataStore.getOwnProfile.tenants.length > 1">
|
||||
<UDivider
|
||||
class="my-3"
|
||||
label="Tenant"
|
||||
/>
|
||||
|
||||
<USelectMenu
|
||||
:options="dataStore.getOwnProfile.tenants"
|
||||
option-attribute="name"
|
||||
value-attribute="id"
|
||||
v-model="dataStore.currentTenant"
|
||||
@change="dataStore.changeTenant()"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<UDivider
|
||||
class="my-3"
|
||||
@@ -67,18 +56,6 @@ const isLight = computed({
|
||||
aria-label="Theme"
|
||||
@click="isLight = !isLight"
|
||||
/>
|
||||
<UButton
|
||||
color="rose"
|
||||
variant="outline"
|
||||
@click="async () => {
|
||||
await supabase.auth.signOut()
|
||||
await dataStore.clearStore()
|
||||
await router.push('/login')
|
||||
|
||||
}"
|
||||
>
|
||||
Ausloggen
|
||||
</UButton>
|
||||
</InputGroup>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user