mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-22 08:20:39 +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
|
text = object.title
|
||||||
break
|
break
|
||||||
case 'link':
|
case 'link':
|
||||||
// TODO: fix when short link is available
|
text = generateIssueShortLink(await getIssueTitle(client, object._id))
|
||||||
text = `${window.location.href}#${generateIssuePanelUri(object)}`
|
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user