KI-AGENT: Aktiviere importierten Mandanten für Zieladmin

This commit is contained in:
2026-05-18 21:47:28 +02:00
parent cc3c405473
commit 1c68e6b724
3 changed files with 37 additions and 0 deletions

View File

@@ -152,6 +152,8 @@ const importTenantExport = async (event: Event) => {
}
await fetchTenant()
await auth.fetchMe()
await auth.switchTenant(String(result.tenantId))
toast.add({
title: "Mandantenimport abgeschlossen",

View File

@@ -108,6 +108,7 @@ const importTenantExport = async (event: Event) => {
const rowCount = (result.tables || []).reduce((sum, table) => sum + table.rows, 0)
await fetchTenants()
await auth.fetchMe()
toast.add({
title: "Mandantenimport abgeschlossen",
@@ -116,6 +117,7 @@ const importTenantExport = async (event: Event) => {
})
if (result.tenantId) {
await auth.switchTenant(String(result.tenantId))
await router.push(`/administration/tenants/${result.tenantId}`)
}
} catch (err: any) {