feat: system editing!
This commit is contained in:
@@ -3,21 +3,23 @@
|
||||
import CardsHeader from '../CardsHeader.svelte';
|
||||
import SystemBody from './Body.svelte';
|
||||
import SystemPrivacy from './Privacy.svelte';
|
||||
import Edit from './Edit.svelte';
|
||||
import type Sys from '../../api/system';
|
||||
|
||||
export let user: Sys;
|
||||
export let isPublic = true;
|
||||
let loading: boolean;
|
||||
|
||||
let editMode = false;
|
||||
</script>
|
||||
|
||||
<Card class="mb-4">
|
||||
<CardsHeader bind:item={user}/>
|
||||
<CardsHeader bind:item={user} bind:loading/>
|
||||
<CardBody style="border-left: 4px solid #{user.color}">
|
||||
{#if !editMode}
|
||||
<SystemBody bind:user={user} bind:editMode={editMode}/>
|
||||
<Body bind:user bind:editMode/>
|
||||
{:else}
|
||||
hehe
|
||||
<Edit bind:user bind:editMode bind:loading />
|
||||
{/if}
|
||||
</CardBody>
|
||||
</Card>
|
||||
|
||||
Reference in New Issue
Block a user