mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 03:40:48 +00:00
[TSK-232] Tracker: fix copy issue url action (#2177)
* Tracker: fix copy issue url action Signed-off-by: Anna <anna.no@xored.com> * Tracker: fix copy issue url action Signed-off-by: Anna <anna.no@xored.com> * Fox review issue: remove duplicate code Signed-off-by: Anna <anna.no@xored.com>
This commit is contained in:
parent
03cd4703e8
commit
7b79c59376
@ -38,8 +38,7 @@ export async function copyToClipboard (object: Issue, ev: Event, { type }: { typ
|
||||
text = object.title
|
||||
break
|
||||
case 'link':
|
||||
// TODO: fix when short link is available
|
||||
text = `${window.location.href}#${generateIssuePanelUri(object)}`
|
||||
text = generateIssueShortLink(await getIssueTitle(client, object._id))
|
||||
break
|
||||
default:
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user