Fix saved view load (#2609)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-02-09 11:22:54 +06:00 committed by GitHub
parent e83fed7258
commit d2179e2d6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 17 deletions

View File

@ -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}>

View File

@ -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 />