Extend tenant maintenance lock for imports
All checks were successful
Build and Push Docker Images / build-backend (push) Successful in 27s
Build and Push Docker Images / build-frontend (push) Successful in 1m11s
Build and Push Docker Images / build-website (push) Successful in 18s
Build and Push Docker Images / build-docs (push) Successful in 16s
All checks were successful
Build and Push Docker Images / build-backend (push) Successful in 27s
Build and Push Docker Images / build-frontend (push) Successful in 1m11s
Build and Push Docker Images / build-website (push) Successful in 18s
Build and Push Docker Images / build-docs (push) Successful in 16s
This commit is contained in:
@@ -11,6 +11,7 @@ export type AdminTenant = {
|
||||
short: string
|
||||
user_count: number
|
||||
locked?: string | null
|
||||
lockedByExportJobId?: string | null
|
||||
}
|
||||
|
||||
export type AdminUserProfile = {
|
||||
|
||||
@@ -29,6 +29,13 @@ const lastImportResult = ref<null | {
|
||||
restoredFiles: number
|
||||
skippedFiles: number
|
||||
}>(null)
|
||||
const lockedOptions = [
|
||||
{ label: "Aktiv", value: null },
|
||||
{ label: "Tenant-Wartung", value: "maintenance_tenant" },
|
||||
{ label: "Globale Wartung", value: "maintenance" },
|
||||
{ label: "Allgemeine Sperre", value: "general" },
|
||||
{ label: "Kein Abonnement", value: "no_subscription" },
|
||||
]
|
||||
|
||||
const tenantForm = ref<AdminTenant | null>(null)
|
||||
const assignedUsers = ref<AdminUser[]>([])
|
||||
@@ -77,6 +84,7 @@ const saveTenant = async () => {
|
||||
await admin.updateTenant(tenantForm.value.id, {
|
||||
name: tenantForm.value.name,
|
||||
short: tenantForm.value.short,
|
||||
locked: tenantForm.value.locked || null,
|
||||
})
|
||||
|
||||
await fetchTenant()
|
||||
@@ -316,7 +324,25 @@ onMounted(async () => {
|
||||
<UFormField label="Kürzel">
|
||||
<UInput v-model="tenantForm.short" />
|
||||
</UFormField>
|
||||
|
||||
<UFormField label="Locked Mode">
|
||||
<USelectMenu
|
||||
v-model="tenantForm.locked"
|
||||
:items="lockedOptions"
|
||||
value-key="value"
|
||||
label-key="label"
|
||||
/>
|
||||
</UFormField>
|
||||
</UForm>
|
||||
|
||||
<UAlert
|
||||
v-if="tenantForm.lockedByExportJobId"
|
||||
class="mt-4"
|
||||
title="Automatische Sperre aktiv"
|
||||
:description="`Dieser Tenant wird gerade durch Export/Import ${tenantForm.lockedByExportJobId} pausiert.`"
|
||||
color="warning"
|
||||
variant="soft"
|
||||
/>
|
||||
</UCard>
|
||||
|
||||
<UCard v-if="!loading && tenantForm" class="mt-3">
|
||||
|
||||
Reference in New Issue
Block a user