add delete modal for member delete with relations

allow admins to delete members
fix Dialog cloes on click outside of content
This commit is contained in:
Gregor Vostrak
2025-06-26 16:05:46 +02:00
parent ead9cf2185
commit dd928508fd
6 changed files with 191 additions and 18 deletions

View File

@@ -2407,6 +2407,11 @@ const endpoints = makeApi([
type: 'Path',
schema: z.string(),
},
{
name: 'delete_related',
type: 'Query',
schema: z.enum(['true', 'false']).optional(),
},
],
response: z.void(),
errors: [
@@ -2436,6 +2441,16 @@ const endpoints = makeApi([
description: `Not found`,
schema: z.object({ message: z.string() }).passthrough(),
},
{
status: 422,
description: `Validation error`,
schema: z
.object({
message: z.string(),
errors: z.record(z.array(z.string())),
})
.passthrough(),
},
],
},
{