mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 11:50:56 +00:00
fix: default project icon (#4984)
Signed-off-by: Eduard Aksamitov <e@euaaaio.ru>
This commit is contained in:
parent
d8ef26dc74
commit
61263c7ffe
@ -14,7 +14,7 @@
|
||||
themeStore
|
||||
} from '@hcengineering/ui'
|
||||
import { ToDosMode } from '..'
|
||||
import { Project } from '@hcengineering/tracker'
|
||||
import tracker, { Project } from '@hcengineering/tracker'
|
||||
import view from '@hcengineering/view'
|
||||
|
||||
export let mode: ToDosMode
|
||||
@ -78,7 +78,7 @@
|
||||
{#if groups}
|
||||
{#each groups as group}
|
||||
<AccordionItem
|
||||
icon={group.icon === view.ids.IconWithEmoji ? IconWithEmoji : group.icon}
|
||||
icon={group.icon === view.ids.IconWithEmoji ? IconWithEmoji : group.icon ?? tracker.icon.Home}
|
||||
iconProps={group.icon === view.ids.IconWithEmoji
|
||||
? { icon: group.color }
|
||||
: {
|
||||
|
@ -56,7 +56,7 @@
|
||||
let name: string = project?.name ?? namePlaceholder
|
||||
let description: string = project?.description ?? descriptionPlaceholder
|
||||
let isPrivate: boolean = project?.private ?? false
|
||||
let icon: Asset | undefined = project?.icon ?? undefined
|
||||
let icon: Asset | undefined = project?.icon ?? tracker.icon.Home
|
||||
let color = project?.color ?? getColorNumberByText(name)
|
||||
let isColorSelected = false
|
||||
let defaultAssignee: Ref<Employee> | null | undefined = project?.defaultAssignee ?? null
|
||||
|
Loading…
Reference in New Issue
Block a user