From 127993538c3b9e59cc80d8bdf2092f71d700330a Mon Sep 17 00:00:00 2001 From: Vyacheslav Tumanov Date: Wed, 11 Jan 2023 11:15:31 +0500 Subject: [PATCH] Tsk 448 blocked by (#2496) Signed-off-by: Vyacheslav Tumanov --- plugins/tracker-assets/lang/en.json | 2 +- .../src/components/issues/RelationEditorPart.svelte | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/plugins/tracker-assets/lang/en.json b/plugins/tracker-assets/lang/en.json index c34b060a61..7022830811 100644 --- a/plugins/tracker-assets/lang/en.json +++ b/plugins/tracker-assets/lang/en.json @@ -161,7 +161,7 @@ "Relations": "Relations", "RemoveRelation": "Remove relation...", "AddBlockedBy": "Mark as blocked by...", - "AddIsBlocking": "Mark as bloking...", + "AddIsBlocking": "Mark as blocking...", "AddRelatedIssue": "Reference another issue...", "RelatedIssue": "Related issue {id} - {title}", "BlockedIssue": "Blocked issue {id} - {title}", diff --git a/plugins/tracker-resources/src/components/issues/RelationEditorPart.svelte b/plugins/tracker-resources/src/components/issues/RelationEditorPart.svelte index ef8f514b9b..9ef31b4364 100644 --- a/plugins/tracker-resources/src/components/issues/RelationEditorPart.svelte +++ b/plugins/tracker-resources/src/components/issues/RelationEditorPart.svelte @@ -4,7 +4,7 @@ import { getResource, IntlString } from '@hcengineering/platform' import { createQuery, getClient } from '@hcengineering/presentation' import { Issue } from '@hcengineering/tracker' - import { Component, Icon, IconClose } from '@hcengineering/ui' + import { Component, Icon, IconClose, showPanel } from '@hcengineering/ui' import view from '@hcengineering/view' import { getIssueId, updateIssueRelation } from '../../issues' import tracker from '../../plugin' @@ -70,6 +70,11 @@ } await update(value, type, docs, label) } + + async function handleRedirect (issue: Issue) { + showPanel(tracker.component.EditIssue, issue._id, issue._class, 'content') + } + const asIssue = (x: Doc) => x as WithLookup @@ -80,7 +85,9 @@
- {getIssueId(issue.$lookup.space, issue)} +