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<Issue> </script> @@ -80,7 +85,9 @@ <div class="tag-container"> <Icon {icon} size={'small'} /> <div class="flex-grow"> - <span class="overflow-label ml-1-5 caption-color">{getIssueId(issue.$lookup.space, issue)}</span> + <button on:click|stopPropagation={() => handleRedirect(issue)}> + <span class="overflow-label ml-1-5 caption-color">{getIssueId(issue.$lookup.space, issue)}</span> + </button> </div> <button class="btn-close" on:click|stopPropagation={() => handleClick(issue)}> <Icon icon={IconClose} size={'x-small'} />