[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:
Anna No 2022-06-30 20:46:46 +07:00 committed by GitHub
parent 03cd4703e8
commit 7b79c59376
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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