forked from github/plane
feat: issue redirect (#685)
* feat: open issue in new tab for list and kanban view * fix: used a tag
This commit is contained in:
parent
5ba7d271b7
commit
62cca1c7cd
@ -33,6 +33,8 @@ import {
|
|||||||
PencilIcon,
|
PencilIcon,
|
||||||
TrashIcon,
|
TrashIcon,
|
||||||
XMarkIcon,
|
XMarkIcon,
|
||||||
|
ArrowTopRightOnSquareIcon,
|
||||||
|
|
||||||
} from "@heroicons/react/24/outline";
|
} from "@heroicons/react/24/outline";
|
||||||
// helpers
|
// helpers
|
||||||
import { handleIssuesMutation } from "constants/issue";
|
import { handleIssuesMutation } from "constants/issue";
|
||||||
@ -211,6 +213,15 @@ export const SingleBoardIssue: React.FC<Props> = ({
|
|||||||
<ContextMenu.Item Icon={LinkIcon} onClick={handleCopyText}>
|
<ContextMenu.Item Icon={LinkIcon} onClick={handleCopyText}>
|
||||||
Copy issue link
|
Copy issue link
|
||||||
</ContextMenu.Item>
|
</ContextMenu.Item>
|
||||||
|
<a
|
||||||
|
href={`/${workspaceSlug}/projects/${projectId}/issues/${issue.id}`}
|
||||||
|
target="_blank"
|
||||||
|
rel="noreferrer noopener"
|
||||||
|
>
|
||||||
|
<ContextMenu.Item Icon={ArrowTopRightOnSquareIcon}>
|
||||||
|
Open issue in new tab
|
||||||
|
</ContextMenu.Item>
|
||||||
|
</a>
|
||||||
</ContextMenu>
|
</ContextMenu>
|
||||||
<div
|
<div
|
||||||
className={`mb-3 rounded bg-white shadow ${
|
className={`mb-3 rounded bg-white shadow ${
|
||||||
|
@ -27,6 +27,7 @@ import {
|
|||||||
PencilIcon,
|
PencilIcon,
|
||||||
TrashIcon,
|
TrashIcon,
|
||||||
XMarkIcon,
|
XMarkIcon,
|
||||||
|
ArrowTopRightOnSquareIcon,
|
||||||
} from "@heroicons/react/24/outline";
|
} from "@heroicons/react/24/outline";
|
||||||
// helpers
|
// helpers
|
||||||
import { copyTextToClipboard, truncateText } from "helpers/string.helper";
|
import { copyTextToClipboard, truncateText } from "helpers/string.helper";
|
||||||
@ -178,6 +179,15 @@ export const SingleListIssue: React.FC<Props> = ({
|
|||||||
<ContextMenu.Item Icon={LinkIcon} onClick={handleCopyText}>
|
<ContextMenu.Item Icon={LinkIcon} onClick={handleCopyText}>
|
||||||
Copy issue link
|
Copy issue link
|
||||||
</ContextMenu.Item>
|
</ContextMenu.Item>
|
||||||
|
<a
|
||||||
|
href={`/${workspaceSlug}/projects/${projectId}/issues/${issue.id}`}
|
||||||
|
target="_blank"
|
||||||
|
rel="noreferrer noopener"
|
||||||
|
>
|
||||||
|
<ContextMenu.Item Icon={ArrowTopRightOnSquareIcon}>
|
||||||
|
Open issue in new tab
|
||||||
|
</ContextMenu.Item>
|
||||||
|
</a>
|
||||||
</ContextMenu>
|
</ContextMenu>
|
||||||
<div className="border-b border-gray-300 last:border-b-0">
|
<div className="border-b border-gray-300 last:border-b-0">
|
||||||
<div
|
<div
|
||||||
|
Loading…
Reference in New Issue
Block a user