deleting groups
This commit is contained in:
parent
4afcb84e08
commit
48f55ff164
2 changed files with 50 additions and 0 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue