UBER-880 Fix project starring (#3711)

Signed-off-by: Alexander Onnikov <alexander.onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2023-09-18 14:40:45 +07:00 committed by GitHub
parent d47ef1b74d
commit c4aceb79fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -65,6 +65,7 @@
{#if specials}
<TreeNode
{collapsed}
_id={space?._id}
icon={space?.icon === tracker.component.IconWithEmoji ? IconWithEmoji : space?.icon ?? model.icon}
iconProps={space?.icon === tracker.component.IconWithEmoji
? { icon: space.color }

View File

@ -13,10 +13,12 @@
// limitations under the License.
-->
<script lang="ts">
import { Doc, Ref } from '@hcengineering/core'
import type { Asset, IntlString } from '@hcengineering/platform'
import type { Action, AnySvelteComponent } from '@hcengineering/ui'
import TreeElement from './TreeElement.svelte'
export let _id: Ref<Doc> | undefined = undefined
export let title: string | undefined = undefined
export let label: IntlString | undefined = undefined
export let icon: Asset | AnySvelteComponent | undefined = undefined
@ -30,6 +32,7 @@
</script>
<TreeElement
{_id}
{title}
{label}
{iconProps}