almost finish status support everywhere else, group setting start impl
This commit is contained in:
parent
6b47888514
commit
92a95cb365
14 changed files with 770 additions and 116 deletions
|
|
@ -168,45 +168,10 @@
|
|||
</Dialog.Header>
|
||||
|
||||
{#each data.friends as friend (friend.id)}
|
||||
<Sidebar.MenuSubItem class="flex items-center gap-2">
|
||||
<Sidebar.MenuSubButton>
|
||||
<User
|
||||
onclick={(e) => {
|
||||
e.preventDefault();
|
||||
currentPage = friend.id;
|
||||
}}
|
||||
user={friend}
|
||||
></User>
|
||||
</Sidebar.MenuSubButton>
|
||||
|
||||
<Dialog.Root>
|
||||
<Dialog.Trigger>
|
||||
<Button variant="destructive" size="icon">
|
||||
<MinusIcon />
|
||||
</Button>
|
||||
</Dialog.Trigger>
|
||||
|
||||
<Dialog.Content class="sm:max-w-106.25">
|
||||
<Dialog.Header>
|
||||
<Dialog.Title>Remove Friend</Dialog.Title>
|
||||
<Dialog.Description>
|
||||
Are you sure you want to remove {friend.username} from your friends?
|
||||
</Dialog.Description>
|
||||
</Dialog.Header>
|
||||
|
||||
<Dialog.Footer class="flex gap-2">
|
||||
<Dialog.Close class={buttonVariants({ variant: 'outline' })}>
|
||||
Cancel
|
||||
</Dialog.Close>
|
||||
|
||||
<form method="POST" action="?/removeFriend">
|
||||
<input type="hidden" name="userId" value={friend.id} />
|
||||
<Button type="submit" variant="destructive">Remove</Button>
|
||||
</form>
|
||||
</Dialog.Footer>
|
||||
</Dialog.Content>
|
||||
</Dialog.Root>
|
||||
</Sidebar.MenuSubItem>
|
||||
<label class="flex items-center gap-2">
|
||||
<input type="checkbox" name="member" value={friend.id} />
|
||||
<User crown={false} user={friend} />
|
||||
</label>
|
||||
{/each}
|
||||
|
||||
<Dialog.Footer>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue