Fied Display Welcome
This commit is contained in:
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user