mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-16 18:50:13 +00:00
feat: member deletion
This commit is contained in:
parent
27226af56e
commit
1e9fe25355
3 changed files with 59 additions and 7 deletions
|
|
@ -167,6 +167,10 @@
|
|||
function updateGroups(event: any) {
|
||||
groups = event.detail;
|
||||
}
|
||||
|
||||
function updateDelete(event: any) {
|
||||
list = list.filter(member => member.id !== event.detail);
|
||||
}
|
||||
</script>
|
||||
|
||||
<Card class="mb-3">
|
||||
|
|
@ -277,14 +281,14 @@
|
|||
<CardsHeader bind:item={member} slot="header">
|
||||
<FaUserCircle slot="icon" />
|
||||
</CardsHeader>
|
||||
<Body on:update={updateList} on:updateGroups={updateGroups} bind:isPublic bind:groups bind:member />
|
||||
<Body on:deletion={updateDelete} on:update={updateList} on:updateGroups={updateGroups} bind:isPublic bind:groups bind:member />
|
||||
</AccordionItem>
|
||||
{:else}
|
||||
<AccordionItem>
|
||||
<CardsHeader bind:item={member} slot="header">
|
||||
<FaLock slot="icon" />
|
||||
</CardsHeader>
|
||||
<Body on:update={updateList} on:updateGroups={updateGroups} bind:isPublic bind:groups bind:member />
|
||||
<Body on:deletion={updateDelete} on:update={updateList} on:updateGroups={updateGroups} bind:isPublic bind:groups bind:member />
|
||||
</AccordionItem>
|
||||
{/if}
|
||||
{/each}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue