mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-26 04:23:58 +03:00
Fix saved view load (#2609)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
e83fed7258
commit
d2179e2d6f
@ -17,6 +17,7 @@
|
||||
import type { Asset, IntlString } from '@hcengineering/platform'
|
||||
import type { Action } from '@hcengineering/ui'
|
||||
import { ActionIcon, Icon, IconMoreV, Label, Menu, showPopup } from '@hcengineering/ui'
|
||||
import { createEventDispatcher } from 'svelte'
|
||||
|
||||
export let _id: Ref<Space> | undefined = undefined
|
||||
export let icon: Asset | undefined = undefined
|
||||
@ -38,6 +39,8 @@
|
||||
})
|
||||
hovered = true
|
||||
}
|
||||
|
||||
const dispatch = createEventDispatcher()
|
||||
</script>
|
||||
|
||||
<div
|
||||
@ -52,6 +55,7 @@
|
||||
class:child={!node}
|
||||
on:click={() => {
|
||||
collapsed = !collapsed
|
||||
dispatch('click')
|
||||
}}
|
||||
>
|
||||
<span class="an-element__label" class:bold class:title={node}>
|
||||
|
@ -17,7 +17,6 @@
|
||||
import type { Asset } from '@hcengineering/platform'
|
||||
import type { Ref, Space } from '@hcengineering/core'
|
||||
import type { Action } from '@hcengineering/ui'
|
||||
import { createEventDispatcher } from 'svelte'
|
||||
|
||||
export let _id: Ref<Space>
|
||||
export let icon: Asset | undefined
|
||||
@ -27,21 +26,6 @@
|
||||
export let selected: boolean = false
|
||||
export let bold = false
|
||||
export let indent: 'default' | 'ml-2' | 'ml-4' | 'ml-8' = 'default'
|
||||
|
||||
const dispatch = createEventDispatcher()
|
||||
</script>
|
||||
|
||||
<TreeElement
|
||||
{_id}
|
||||
{icon}
|
||||
{title}
|
||||
{notifications}
|
||||
{selected}
|
||||
{actions}
|
||||
{bold}
|
||||
collapsed
|
||||
{indent}
|
||||
on:click={() => {
|
||||
dispatch('click')
|
||||
}}
|
||||
/>
|
||||
<TreeElement {_id} {icon} {title} {notifications} {selected} {actions} {bold} collapsed {indent} on:click />
|
||||
|
Loading…
Reference in New Issue
Block a user