mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-23 01:55:00 +02:00
@@ -118,7 +118,7 @@
|
||||
subIssuesQeury.unsubscribe()
|
||||
}
|
||||
|
||||
$: parentStatus = parentIssue ? $statusStore.getIdMap().get(parentIssue.status) : undefined
|
||||
$: parentStatus = parentIssue ? $statusStore.get(parentIssue.status) : undefined
|
||||
</script>
|
||||
|
||||
{#if parentIssue}
|
||||
@@ -132,7 +132,7 @@
|
||||
>
|
||||
{#if parentStatus}
|
||||
<div class="pr-2">
|
||||
<IssueStatusIcon value={parentStatus} size="small" />
|
||||
<IssueStatusIcon space={parentIssue.space} value={parentStatus} size="small" />
|
||||
</div>
|
||||
{/if}
|
||||
{#if issue.$lookup?.space}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
// limitations under the License.
|
||||
-->
|
||||
<script lang="ts">
|
||||
import { Ref, SortingOrder, WithLookup } from '@hcengineering/core'
|
||||
import { Ref, SortingOrder, Status, WithLookup } from '@hcengineering/core'
|
||||
import { createQuery } from '@hcengineering/presentation'
|
||||
import { Issue, Project } from '@hcengineering/tracker'
|
||||
import {
|
||||
@@ -79,13 +79,17 @@
|
||||
}
|
||||
|
||||
$: if (subIssues) {
|
||||
const doneStatuses = $statusStore
|
||||
.getDocs()
|
||||
.filter(
|
||||
(s) =>
|
||||
s.category === tracker.issueStatusCategory.Completed || s.category === tracker.issueStatusCategory.Canceled
|
||||
)
|
||||
.map((p) => p._id)
|
||||
const doneStatuses = project
|
||||
? project.states
|
||||
.map((p) => $statusStore.get(p))
|
||||
.filter((p) => p !== undefined)
|
||||
.filter(
|
||||
(s) =>
|
||||
s?.category === tracker.issueStatusCategory.Completed ||
|
||||
s?.category === tracker.issueStatusCategory.Canceled
|
||||
)
|
||||
.map((p) => (p as Status)._id)
|
||||
: []
|
||||
countComplete = subIssues.filter((si) => doneStatuses.includes(si.status)).length
|
||||
}
|
||||
$: hasSubIssues = (subIssues?.length ?? 0) > 0
|
||||
|
||||
Reference in New Issue
Block a user