Tenantdaten vollständig laden

Lädt den aktiven Tenant über die Tenant-Route nach und gibt calendarConfig in der Me-Antwort mit zurück.
This commit is contained in:
2026-06-03 09:27:08 +02:00
parent 42d2d7dc0e
commit 47a9af26fe
4 changed files with 44 additions and 3 deletions

View File

@@ -77,6 +77,16 @@ export const useProfileStore = defineStore("profile", () => {
async function fetchOwnTenant() {
syncFromAuth()
try {
const tenant = await useNuxtApp().$api("/api/tenant")
if (tenant) {
ownTenant.value = tenant
auth.activeTenantData = tenant
return
}
} catch (e) {
}
ownTenant.value = auth.activeTenantData || ownTenant.value
}