TSK-1653 Subissue selector does not navigate to issue (#3800)

Signed-off-by: Alexander Onnikov <alexander.onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2023-10-06 14:18:00 +07:00 committed by GitHub
parent 5fd292d8da
commit 08a686e3d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
<!--
// Copyright © 2022 Hardcore Engineering Inc.
// Copyright © 2022, 2023 Hardcore Engineering Inc.
//
// Licensed under the Eclipse Public License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. You may
@ -13,7 +13,7 @@
// limitations under the License.
-->
<script lang="ts">
import core, { IdMap, SortingOrder, StatusCategory, WithLookup, toIdMap } from '@hcengineering/core'
import core, { IdMap, Ref, SortingOrder, StatusCategory, WithLookup, toIdMap } from '@hcengineering/core'
import { createQuery, getClient } from '@hcengineering/presentation'
import { Issue, IssueStatus } from '@hcengineering/tracker'
import {
@ -48,6 +48,13 @@
}
}
function openSubIssue (target: Ref<Issue>) {
const subIssue = subIssues?.find((p) => p._id === target)
if (subIssue !== undefined) {
openIssue(subIssue)
}
}
function openParentIssue () {
if (parentIssue) {
closeTooltip()
@ -159,7 +166,7 @@
component: SelectPopup,
props: {
value: subIssueValue,
onSelect: openIssue,
onSelect: openSubIssue,
showShadow: false,
width: 'large'
}