mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-30 21:45:01 +02:00
Fix statuses (#3666)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
statuses = getStates(_space, $statusStore).filter((p) => p.category === tracker.issueStatusCategory.Started)
|
||||
}
|
||||
|
||||
async function updateCategory (status: WithLookup<IssueStatus>, statuses: IssueStatus[]) {
|
||||
async function updateCategory (_space: Project | undefined, status: WithLookup<IssueStatus>, statuses: IssueStatus[]) {
|
||||
if (status.$lookup?.category) {
|
||||
category = status.$lookup.category
|
||||
}
|
||||
@@ -68,7 +68,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
$: updateCategory(value, statuses)
|
||||
$: updateCategory(_space, value, statuses)
|
||||
$: icon = category?.icon
|
||||
$: color = value.color !== undefined ? value.color : category !== undefined ? category.color : -1
|
||||
</script>
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
return {
|
||||
id: s._id,
|
||||
component: StatusPresenter,
|
||||
props: { value: s, size: 'small' },
|
||||
props: { value: s, size: 'small', space: value.space },
|
||||
isSelected: selectedStatus?._id === s._id ?? false
|
||||
}
|
||||
})
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
</script>
|
||||
|
||||
<div class="flex-presenter flex-gap-1-5">
|
||||
{#each statuses as value, i}
|
||||
{#each statuses as value, i (value._id)}
|
||||
{#if value && i < 5}
|
||||
<div>
|
||||
<IssueStatusIcon {space} {value} size={'small'} />
|
||||
|
||||
Reference in New Issue
Block a user