mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-07 00:09:34 +00:00
Tsk 448 blocked by (#2496)
Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
parent
ec755596ca
commit
127993538c
@ -161,7 +161,7 @@
|
|||||||
"Relations": "Relations",
|
"Relations": "Relations",
|
||||||
"RemoveRelation": "Remove relation...",
|
"RemoveRelation": "Remove relation...",
|
||||||
"AddBlockedBy": "Mark as blocked by...",
|
"AddBlockedBy": "Mark as blocked by...",
|
||||||
"AddIsBlocking": "Mark as bloking...",
|
"AddIsBlocking": "Mark as blocking...",
|
||||||
"AddRelatedIssue": "Reference another issue...",
|
"AddRelatedIssue": "Reference another issue...",
|
||||||
"RelatedIssue": "Related issue {id} - {title}",
|
"RelatedIssue": "Related issue {id} - {title}",
|
||||||
"BlockedIssue": "Blocked issue {id} - {title}",
|
"BlockedIssue": "Blocked issue {id} - {title}",
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
import { getResource, IntlString } from '@hcengineering/platform'
|
import { getResource, IntlString } from '@hcengineering/platform'
|
||||||
import { createQuery, getClient } from '@hcengineering/presentation'
|
import { createQuery, getClient } from '@hcengineering/presentation'
|
||||||
import { Issue } from '@hcengineering/tracker'
|
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 view from '@hcengineering/view'
|
||||||
import { getIssueId, updateIssueRelation } from '../../issues'
|
import { getIssueId, updateIssueRelation } from '../../issues'
|
||||||
import tracker from '../../plugin'
|
import tracker from '../../plugin'
|
||||||
@ -70,6 +70,11 @@
|
|||||||
}
|
}
|
||||||
await update(value, type, docs, label)
|
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>
|
const asIssue = (x: Doc) => x as WithLookup<Issue>
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -80,7 +85,9 @@
|
|||||||
<div class="tag-container">
|
<div class="tag-container">
|
||||||
<Icon {icon} size={'small'} />
|
<Icon {icon} size={'small'} />
|
||||||
<div class="flex-grow">
|
<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>
|
</div>
|
||||||
<button class="btn-close" on:click|stopPropagation={() => handleClick(issue)}>
|
<button class="btn-close" on:click|stopPropagation={() => handleClick(issue)}>
|
||||||
<Icon icon={IconClose} size={'x-small'} />
|
<Icon icon={IconClose} size={'x-small'} />
|
||||||
|
Loading…
Reference in New Issue
Block a user