mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-12 19:30:52 +00:00
UBERF-7105: Use status colour when projectState is undefined (#5697)
Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
parent
c20c7cacd6
commit
6bec327f61
@ -135,18 +135,22 @@
|
||||
{#if kind === 'table-attrs'}
|
||||
<button class="hulyTableAttr-content__row-icon-wrapper" on:click>
|
||||
{#if icon != null}
|
||||
<Icon {icon} {size} iconProps={{ icon: projectState?.color ?? category?.color }} />
|
||||
<Icon {icon} {size} iconProps={{ icon: projectState?.color ?? value?.color ?? category?.color }} />
|
||||
{:else if category?._id === task.statusCategory.Active}
|
||||
<Icon
|
||||
icon={categoryIcons[category._id]}
|
||||
{size}
|
||||
iconProps={{ index, count: sameCategory.length + 1, fill: projectState?.color ?? category?.color }}
|
||||
iconProps={{
|
||||
index,
|
||||
count: sameCategory.length + 1,
|
||||
fill: projectState?.color ?? value?.color ?? category?.color
|
||||
}}
|
||||
/>
|
||||
{:else}
|
||||
<Icon
|
||||
icon={categoryIcons[category?._id ?? task.statusCategory.UnStarted]}
|
||||
{size}
|
||||
iconProps={{ fill: projectState?.color ?? category?.color }}
|
||||
iconProps={{ fill: projectState?.color ?? value?.color ?? category?.color }}
|
||||
/>
|
||||
{/if}
|
||||
</button>
|
||||
@ -175,18 +179,22 @@
|
||||
title={shouldShowTooltip ? value.name : undefined}
|
||||
>
|
||||
{#if icon != null}
|
||||
<Icon {icon} {size} iconProps={{ icon: projectState?.color ?? category?.color }} />
|
||||
<Icon {icon} {size} iconProps={{ icon: projectState?.color ?? value?.color ?? category?.color }} />
|
||||
{:else if category?._id === task.statusCategory.Active}
|
||||
<Icon
|
||||
icon={categoryIcons[category._id]}
|
||||
{size}
|
||||
iconProps={{ index, count: sameCategory.length + 1, fill: projectState?.color ?? category?.color }}
|
||||
iconProps={{
|
||||
index,
|
||||
count: sameCategory.length + 1,
|
||||
fill: projectState?.color ?? value?.color ?? category?.color
|
||||
}}
|
||||
/>
|
||||
{:else}
|
||||
<Icon
|
||||
icon={categoryIcons[category?._id ?? task.statusCategory.UnStarted]}
|
||||
{size}
|
||||
iconProps={{ fill: projectState?.color ?? category?.color }}
|
||||
iconProps={{ fill: projectState?.color ?? value?.color ?? category?.color }}
|
||||
/>
|
||||
{/if}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user