mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
feat: copied to clipboard alerts
This commit is contained in:
parent
df4211e54f
commit
0658953d7a
@ -219,9 +219,9 @@ export const IssueDetailsSidebar: React.FC<Props> = ({
|
|||||||
`${originURL}/${workspaceSlug}/projects/${projectId}/issues/${issueDetail?.id}`
|
`${originURL}/${workspaceSlug}/projects/${projectId}/issues/${issueDetail?.id}`
|
||||||
).then(() => {
|
).then(() => {
|
||||||
setToastAlert({
|
setToastAlert({
|
||||||
type: "success",
|
type: "info",
|
||||||
title: "Link Copied!",
|
title: "Link Copied Successfully",
|
||||||
message: "Issue link copied to clipboard.",
|
iconType: "copy",
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -265,9 +265,9 @@ export const SinglePageBlock: React.FC<Props> = ({ block, projectDetails, index
|
|||||||
`${originURL}/${workspaceSlug}/projects/${projectId}/issues/${block.issue}`
|
`${originURL}/${workspaceSlug}/projects/${projectId}/issues/${block.issue}`
|
||||||
).then(() => {
|
).then(() => {
|
||||||
setToastAlert({
|
setToastAlert({
|
||||||
type: "success",
|
type: "info",
|
||||||
title: "Link Copied!",
|
title: "Link Copied Successfully",
|
||||||
message: "Issue link copied to clipboard.",
|
iconType: "copy",
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -57,9 +57,9 @@ export const SinglePageDetailedItem: React.FC<TSingleStatProps> = ({
|
|||||||
`${originURL}/${workspaceSlug}/projects/${projectId}/pages/${page.id}`
|
`${originURL}/${workspaceSlug}/projects/${projectId}/pages/${page.id}`
|
||||||
).then(() => {
|
).then(() => {
|
||||||
setToastAlert({
|
setToastAlert({
|
||||||
type: "success",
|
type: "info",
|
||||||
title: "Link Copied!",
|
title: "Link Copied Successfully",
|
||||||
message: "Page link copied to clipboard.",
|
iconType: "copy",
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -58,9 +58,9 @@ export const SinglePageListItem: React.FC<TSingleStatProps> = ({
|
|||||||
`${originURL}/${workspaceSlug}/projects/${projectId}/pages/${page.id}`
|
`${originURL}/${workspaceSlug}/projects/${projectId}/pages/${page.id}`
|
||||||
).then(() => {
|
).then(() => {
|
||||||
setToastAlert({
|
setToastAlert({
|
||||||
type: "success",
|
type: "info",
|
||||||
title: "Link Copied!",
|
title: "Link Copied Successfully",
|
||||||
message: "Page link copied to clipboard.",
|
iconType: "copy",
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -127,9 +127,9 @@ export const ProjectSidebarList: FC = () => {
|
|||||||
typeof window !== "undefined" && window.location.origin ? window.location.origin : "";
|
typeof window !== "undefined" && window.location.origin ? window.location.origin : "";
|
||||||
copyTextToClipboard(`${originURL}/${workspaceSlug}/projects/${projectId}/issues`).then(() => {
|
copyTextToClipboard(`${originURL}/${workspaceSlug}/projects/${projectId}/issues`).then(() => {
|
||||||
setToastAlert({
|
setToastAlert({
|
||||||
type: "success",
|
type: "info",
|
||||||
title: "Link Copied!",
|
title: "Link Copied Successfully",
|
||||||
message: "Project link copied to clipboard.",
|
iconType: "copy",
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -128,9 +128,9 @@ export const SingleProjectCard: React.FC<ProjectCardProps> = ({
|
|||||||
|
|
||||||
copyTextToClipboard(`${originURL}/${workspaceSlug}/projects/${project.id}/issues`).then(() => {
|
copyTextToClipboard(`${originURL}/${workspaceSlug}/projects/${project.id}/issues`).then(() => {
|
||||||
setToastAlert({
|
setToastAlert({
|
||||||
type: "success",
|
type: "info",
|
||||||
title: "Link Copied!",
|
title: "Link Copied Successfully",
|
||||||
message: "Project link copied to clipboard.",
|
iconType: "copy",
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -247,9 +247,9 @@ const SinglePage: NextPage = () => {
|
|||||||
copyTextToClipboard(`${originURL}/${workspaceSlug}/projects/${projectId}/pages/${pageId}`).then(
|
copyTextToClipboard(`${originURL}/${workspaceSlug}/projects/${projectId}/pages/${pageId}`).then(
|
||||||
() => {
|
() => {
|
||||||
setToastAlert({
|
setToastAlert({
|
||||||
type: "success",
|
type: "info",
|
||||||
title: "Link Copied!",
|
title: "Link Copied Successfully",
|
||||||
message: "Page link copied to clipboard.",
|
iconType: "copy",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user