mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 11:42:30 +03:00
TSK-1653 Subissue selector does not navigate to issue (#3800)
Signed-off-by: Alexander Onnikov <alexander.onnikov@xored.com>
This commit is contained in:
parent
5fd292d8da
commit
08a686e3d5
@ -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'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user