mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 11:42:30 +03:00
Added subissues selector for subissue list (#2422)
Signed-off-by: Anton Brechka <anton.brechka@xored.com>
This commit is contained in:
parent
6b46af0384
commit
643811c8f0
@ -27,6 +27,7 @@
|
||||
import PriorityEditor from '../PriorityEditor.svelte'
|
||||
import StatusEditor from '../StatusEditor.svelte'
|
||||
import EstimationEditor from '../timereport/EstimationEditor.svelte'
|
||||
import SubIssuesSelector from './SubIssuesSelector.svelte'
|
||||
|
||||
export let issues: Issue[]
|
||||
|
||||
@ -134,6 +135,9 @@
|
||||
<span class="text name" title={issue.title} on:click={openIssueCall}>
|
||||
{issue.title}
|
||||
</span>
|
||||
{#if issue.subIssues > 0}
|
||||
<SubIssuesSelector value={issue} {currentTeam} statuses={issueStatuses.get(issue.space)} />
|
||||
{/if}
|
||||
</div>
|
||||
<div class="flex-center flex-no-shrink">
|
||||
<EstimationEditor value={issue} kind={'list'} />
|
||||
|
@ -49,7 +49,12 @@
|
||||
|
||||
$: hasSubIssues = issue.subIssues > 0
|
||||
$: subIssuesQuery.query(tracker.class.Issue, { attachedTo: issue._id }, async (result) => (subIssues = result), {
|
||||
sort: { rank: SortingOrder.Ascending }
|
||||
sort: { rank: SortingOrder.Ascending },
|
||||
lookup: {
|
||||
_id: {
|
||||
subIssues: tracker.class.Issue
|
||||
}
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user