mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-24 01:07:50 +00:00
Fix board menu button (#1693)
Signed-off-by: Dvinyanin Alexandr <dvinyanin.alexandr@gmail.com>
This commit is contained in:
parent
64a8a27265
commit
9951132b3c
@ -1,6 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import core, { Ref, Space } from '@anticrm/core'
|
import core, { Ref, Space } from '@anticrm/core'
|
||||||
import { Button, getCurrentLocation, navigate } from '@anticrm/ui'
|
import { Button, getCurrentLocation, navigate, location } from '@anticrm/ui'
|
||||||
import { createQuery, getClient } from '@anticrm/presentation'
|
import { createQuery, getClient } from '@anticrm/presentation'
|
||||||
import { Header, classIcon } from '@anticrm/chunter-resources'
|
import { Header, classIcon } from '@anticrm/chunter-resources'
|
||||||
import border from '../plugin'
|
import border from '../plugin'
|
||||||
@ -20,11 +20,14 @@
|
|||||||
loc.path[3] = space._id
|
loc.path[3] = space._id
|
||||||
navigate(loc)
|
navigate(loc)
|
||||||
}
|
}
|
||||||
|
$: showMenuButton = $location.path[3] !== spaceId
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="ac-header divide full">
|
<div class="ac-header divide full">
|
||||||
{#if space}
|
{#if space}
|
||||||
<Header icon={classIcon(client, space._class)} label={space.name} description={space.description} />
|
<Header icon={classIcon(client, space._class)} label={space.name} description={space.description} />
|
||||||
<Button label={border.string.ShowMenu} on:click={showMenu} />
|
{#if showMenuButton}
|
||||||
|
<Button label={border.string.ShowMenu} on:click={showMenu} />
|
||||||
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user