mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 16:50:10 +00:00
add beginnings of individual member pages
This commit is contained in:
parent
4d7fe9d26d
commit
aa83de6f9a
3 changed files with 119 additions and 3 deletions
|
|
@ -14,6 +14,7 @@
|
|||
export let groups: Group[] = [];
|
||||
export let member: Member;
|
||||
export let isPublic: boolean = false;
|
||||
export let isPage: boolean = false;
|
||||
|
||||
let editMode: boolean = false;
|
||||
let groupMode: boolean = false;
|
||||
|
|
@ -145,6 +146,11 @@
|
|||
{#if !isPublic}
|
||||
<Button style="flex: 0" color="primary" on:click={() => editMode = true}>Edit</Button> <Button style="flex: 0" color="secondary" on:click={() => groupMode = true}>Groups</Button>
|
||||
{/if}
|
||||
{#if !isPage}
|
||||
<Button style="flex: 0; float: right;" color="primary">View page</Button>
|
||||
{:else}
|
||||
<Button style="flex: 0; float: right;" color="primary">View system</Button>
|
||||
{/if}
|
||||
{:else if editMode}
|
||||
<Edit on:deletion on:update bind:member bind:editMode />
|
||||
{:else if groupMode}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue