Skip to content

Commit

Permalink
Hide self view and participants on Weave context
Browse files Browse the repository at this point in the history
  • Loading branch information
Zequez committed Dec 10, 2024
1 parent d9f43c6 commit 35b7420
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions ui/src/Layout/LayoutBar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import { getContext } from '~/store';
import AgentAvatar from '~/shared/AgentAvatar.svelte';
const { profilesStore, pubKey } = getContext();
const { profilesStore, pubKey, weaveClient } = getContext();
export let title = 'Board Gamez';
export let canChangeTitle: boolean = false;
Expand Down Expand Up @@ -50,7 +50,7 @@
<AvatarDialog bind:this={editAvatarDialog} />
<ParticipantsDialog bind:this={participantsDialog} />

<div class="flexcc flex-shrink-0 bg-main-400 b-black/10 0 b text-white px6 h-16 space-x-2">
<div class="flexcc flex-shrink-0 bg-main-400 b-black/10 0 b text-white px2 h-16 space-x-2">
<!-- LEFT SIDE BUTTONS -->

{#if $route.id != 'home'}
Expand Down Expand Up @@ -96,18 +96,18 @@
<BugIcon />
</a>

<button
class="h12 w12 flexcc rounded-full hover:(bg-black/10 text-white)"
on:click={() => {
participantsDialog.open();
}}
title="Show Participants"
use:tooltip={'Show Participants'}
>
<UserGroupIcon />
</button>
{#if !weaveClient}
<button
class="h12 w12 flexcc rounded-full hover:(bg-black/10 text-white)"
on:click={() => {
participantsDialog.open();
}}
title="Show Participants"
use:tooltip={'Show Participants'}
>
<UserGroupIcon />
</button>

{#if !isWeaveContext()}
<button
on:click={editAvatar}
title={myName ? myName : 'Edit Avatar'}
Expand All @@ -116,7 +116,5 @@
>
<AgentAvatar size={38} {pubKey} />
</button>
{:else}
<AgentAvatar size={38} {pubKey} />
{/if}
</div>

0 comments on commit 35b7420

Please sign in to comment.