Fied Display Welcome

This commit is contained in:
2025-09-24 17:49:08 +02:00
parent 911f5f049a
commit 476b4b5d4f

View File

@@ -1,23 +1,14 @@
<script setup> <script setup>
const supabase = useSupabaseClient() const auth = useAuthStore()
const router = useRouter()
const profileStore = useProfileStore()
const tenant = ref({})
const setupPage = async () => {
tenant.value = (await supabase.from("tenants").select().eq("id",profileStore.currentTenant).single()).data
}
setupPage()
</script> </script>
<template> <template>
<div> <div>
<h1 class="font-bold text-xl">Willkommen zurück {{profileStore.activeProfile.fullName}}</h1> <h1 class="font-bold text-xl">Willkommen zurück {{auth.profile.full_name}}</h1>
<span v-if="tenant.id">bei {{tenant.name}}</span> <span v-if="auth.activeTenant">bei {{auth.activeTenantData.name}}</span>
</div> </div>
</template> </template>