mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-22 14:29:36 +02:00
Add more to user page
This commit is contained in:
parent
eab2369352
commit
f7c440c364
3 changed files with 24 additions and 8 deletions
|
@ -11,10 +11,6 @@
|
|||
export let shared_with: string[] | undefined = undefined;
|
||||
|
||||
export let user: User;
|
||||
|
||||
async function nav() {
|
||||
goto(`/user/${user.uuid}`);
|
||||
}
|
||||
</script>
|
||||
|
||||
<div
|
||||
|
@ -44,7 +40,7 @@
|
|||
</div>
|
||||
<div class="card-actions justify-end">
|
||||
{#if !sharing}
|
||||
<button class="btn btn-primary" on:click={nav}>View</button>
|
||||
<button class="btn btn-primary" on:click={() => goto(`/user/${user.uuid}`)}>View</button>
|
||||
{:else if shared_with && !shared_with.includes(user.uuid)}
|
||||
<button class="btn btn-primary" on:click={() => dispatch('share', user)}>Share</button>
|
||||
{:else}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue