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"); // 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 // you may not use this file except in compliance with the License. You may
@ -13,7 +13,7 @@
// limitations under the License. // limitations under the License.
--> -->
<script lang="ts"> <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 { createQuery, getClient } from '@hcengineering/presentation'
import { Issue, IssueStatus } from '@hcengineering/tracker' import { Issue, IssueStatus } from '@hcengineering/tracker'
import { 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 () { function openParentIssue () {
if (parentIssue) { if (parentIssue) {
closeTooltip() closeTooltip()
@ -159,7 +166,7 @@
component: SelectPopup, component: SelectPopup,
props: { props: {
value: subIssueValue, value: subIssueValue,
onSelect: openIssue, onSelect: openSubIssue,
showShadow: false, showShadow: false,
width: 'large' width: 'large'
} }