mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-18 22:38:33 +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
|
themeStore
|
||||||
} from '@hcengineering/ui'
|
} from '@hcengineering/ui'
|
||||||
import { ToDosMode } from '..'
|
import { ToDosMode } from '..'
|
||||||
import { Project } from '@hcengineering/tracker'
|
import tracker, { Project } from '@hcengineering/tracker'
|
||||||
import view from '@hcengineering/view'
|
import view from '@hcengineering/view'
|
||||||
|
|
||||||
export let mode: ToDosMode
|
export let mode: ToDosMode
|
||||||
@ -78,7 +78,7 @@
|
|||||||
{#if groups}
|
{#if groups}
|
||||||
{#each groups as group}
|
{#each groups as group}
|
||||||
<AccordionItem
|
<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
|
iconProps={group.icon === view.ids.IconWithEmoji
|
||||||
? { icon: group.color }
|
? { icon: group.color }
|
||||||
: {
|
: {
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
let name: string = project?.name ?? namePlaceholder
|
let name: string = project?.name ?? namePlaceholder
|
||||||
let description: string = project?.description ?? descriptionPlaceholder
|
let description: string = project?.description ?? descriptionPlaceholder
|
||||||
let isPrivate: boolean = project?.private ?? false
|
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 color = project?.color ?? getColorNumberByText(name)
|
||||||
let isColorSelected = false
|
let isColorSelected = false
|
||||||
let defaultAssignee: Ref<Employee> | null | undefined = project?.defaultAssignee ?? null
|
let defaultAssignee: Ref<Employee> | null | undefined = project?.defaultAssignee ?? null
|
||||||
|
Loading…
Reference in New Issue
Block a user