mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-26 02:10:07 +00: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 { Asset, IntlString } from '@hcengineering/platform'
|
||||||
import type { Action } from '@hcengineering/ui'
|
import type { Action } from '@hcengineering/ui'
|
||||||
import { ActionIcon, Icon, IconMoreV, Label, Menu, showPopup } 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 _id: Ref<Space> | undefined = undefined
|
||||||
export let icon: Asset | undefined = undefined
|
export let icon: Asset | undefined = undefined
|
||||||
@ -38,6 +39,8 @@
|
|||||||
})
|
})
|
||||||
hovered = true
|
hovered = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const dispatch = createEventDispatcher()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
@ -52,6 +55,7 @@
|
|||||||
class:child={!node}
|
class:child={!node}
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
collapsed = !collapsed
|
collapsed = !collapsed
|
||||||
|
dispatch('click')
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<span class="an-element__label" class:bold class:title={node}>
|
<span class="an-element__label" class:bold class:title={node}>
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
import type { Asset } from '@hcengineering/platform'
|
import type { Asset } from '@hcengineering/platform'
|
||||||
import type { Ref, Space } from '@hcengineering/core'
|
import type { Ref, Space } from '@hcengineering/core'
|
||||||
import type { Action } from '@hcengineering/ui'
|
import type { Action } from '@hcengineering/ui'
|
||||||
import { createEventDispatcher } from 'svelte'
|
|
||||||
|
|
||||||
export let _id: Ref<Space>
|
export let _id: Ref<Space>
|
||||||
export let icon: Asset | undefined
|
export let icon: Asset | undefined
|
||||||
@ -27,21 +26,6 @@
|
|||||||
export let selected: boolean = false
|
export let selected: boolean = false
|
||||||
export let bold = false
|
export let bold = false
|
||||||
export let indent: 'default' | 'ml-2' | 'ml-4' | 'ml-8' = 'default'
|
export let indent: 'default' | 'ml-2' | 'ml-4' | 'ml-8' = 'default'
|
||||||
|
|
||||||
const dispatch = createEventDispatcher()
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<TreeElement
|
<TreeElement {_id} {icon} {title} {notifications} {selected} {actions} {bold} collapsed {indent} on:click />
|
||||||
{_id}
|
|
||||||
{icon}
|
|
||||||
{title}
|
|
||||||
{notifications}
|
|
||||||
{selected}
|
|
||||||
{actions}
|
|
||||||
{bold}
|
|
||||||
collapsed
|
|
||||||
{indent}
|
|
||||||
on:click={() => {
|
|
||||||
dispatch('click')
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user