mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-24 20:40:59 +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">
|
||||
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 { Header, classIcon } from '@anticrm/chunter-resources'
|
||||
import border from '../plugin'
|
||||
@ -20,11 +20,14 @@
|
||||
loc.path[3] = space._id
|
||||
navigate(loc)
|
||||
}
|
||||
$: showMenuButton = $location.path[3] !== spaceId
|
||||
</script>
|
||||
|
||||
<div class="ac-header divide full">
|
||||
{#if space}
|
||||
<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}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user