TSK-868 Component icon is missing (#2772)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2023-03-20 14:17:22 +07:00
committed by GitHub
parent c1e4abd766
commit 81f290fef4
10 changed files with 7 additions and 40 deletions
@@ -55,7 +55,6 @@
$: handleSelectedComponentIdUpdated(value, rawComponents)
$: translate(tracker.string.Component, {}).then((result) => (defaultComponentLabel = result))
$: componentIcon = selectedComponent?.icon ?? tracker.icon.Components
$: componentText = shouldShowLabel ? selectedComponent?.label ?? defaultComponentLabel : undefined
const handleSelectedComponentIdUpdated = async (
@@ -81,7 +80,7 @@
{ id: null, icon: tracker.icon.Components, label: tracker.string.NoComponent, isSelected: !selectedComponent },
...rawComponents.map((p) => ({
id: p._id,
icon: p.icon,
icon: tracker.icon.Components,
text: p.label,
isSelected: selectedComponent ? p._id === selectedComponent._id : false
}))
@@ -103,7 +102,7 @@
{shape}
{width}
{justify}
icon={componentIcon}
icon={tracker.icon.Components}
disabled={!isEditable}
{loading}
on:click={handleComponentEditorOpened}
@@ -115,7 +114,7 @@
{shape}
{width}
{justify}
icon={componentIcon}
icon={tracker.icon.Components}
disabled={!isEditable}
{loading}
on:click={handleComponentEditorOpened}
@@ -95,7 +95,6 @@
const tR: TimelineRow = { items: [] }
tR.items = [
{
icon: proj.icon,
presenter: ComponentPresenter,
props: { value: proj },
startDate: proj.startDate as Timestamp,
@@ -22,7 +22,7 @@
{#if value}
<span class="overflow-label flex">
<Icon icon={value.icon ?? tracker.icon.Component} size={'small'} />
<Icon icon={tracker.icon.Component} size={'small'} />
<div class="ml-2 mr-2">
{value.label}
</div></span
@@ -13,11 +13,8 @@
// limitations under the License.
-->
<script lang="ts">
import { WithLookup } from '@hcengineering/core'
import { Component } from '@hcengineering/tracker'
import { Button } from '@hcengineering/ui'
export let value: WithLookup<Component>
import tracker from '../../plugin'
</script>
<Button size="small" kind="link" icon={value.icon} />
<Button size="small" kind="link" icon={tracker.icon.Components} />
@@ -30,7 +30,6 @@
const object: Data<Component> = {
label: '' as IntlString,
description: '',
icon: tracker.icon.Components,
status: ComponentStatus.Backlog,
lead: null,
members: [],
@@ -68,4 +68,3 @@
/>
</div>
{/if}
AddToComponent