Add tenant merge review page
All checks were successful
Build and Push Docker Images / build-backend (push) Successful in 39s
Build and Push Docker Images / build-frontend (push) Successful in 1m43s
Build and Push Docker Images / build-central-services-api (push) Successful in 23s
Build and Push Docker Images / build-docs (push) Successful in 24s
Build and Push Docker Images / build-website (push) Successful in 26s
Build and Push Docker Images / build-central-services-admin (push) Successful in 24s

This commit is contained in:
2026-08-06 12:35:31 +02:00
parent e2fdfe9c0a
commit 291f278d99
3 changed files with 299 additions and 1 deletions

View File

@@ -206,7 +206,7 @@ const importTenantExport = async (event: Event) => {
filename: job.filename || file.name,
}
while (!["ready", "failed"].includes(job.status)) {
while (!["ready", "review", "failed"].includes(job.status)) {
await new Promise((resolve) => setTimeout(resolve, 1500))
job = await admin.getTenantExport(importJobId)
tenantImportProgress.value = {
@@ -221,6 +221,11 @@ const importTenantExport = async (event: Event) => {
throw new Error(job.error || "Import konnte nicht abgeschlossen werden.")
}
if (job.status === "review") {
await router.push(`/administration/tenant-imports/${importJobId}`)
return
}
await fetchTenant()
await auth.fetchMe()
await auth.switchTenant(String(job.tenantId || targetTenantId))