deleting groups

This commit is contained in:
Soph :3 2026-01-11 15:05:49 +02:00
parent 4afcb84e08
commit 48f55ff164
2 changed files with 50 additions and 0 deletions

View file

@ -105,6 +105,20 @@
<Button type="submit" class="w-full">Save Changes</Button>
</form>
{#if (currentEntity as OverviewGroup).members === 1}
<form
method="POST"
action="?/deleteGroup"
class="border-t border-red-500/30 pt-4"
>
<input type="hidden" name="groupId" value={currentEntityId} />
<Button type="submit" variant="destructive" class="w-full">
Delete group
</Button>
</form>
{/if}
</Tabs.Content>
{/if}
<Tabs.Content value="users">