mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-21 07:46:24 +00: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");
|
// 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'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user