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}`
|
||||
).then(() => {
|
||||
setToastAlert({
|
||||
type: "success",
|
||||
title: "Link Copied!",
|
||||
message: "Issue link copied to clipboard.",
|
||||
type: "info",
|
||||
title: "Link Copied Successfully",
|
||||
iconType: "copy",
|
||||
});
|
||||
});
|
||||
};
|
||||
|
@ -265,9 +265,9 @@ export const SinglePageBlock: React.FC<Props> = ({ block, projectDetails, index
|
||||
`${originURL}/${workspaceSlug}/projects/${projectId}/issues/${block.issue}`
|
||||
).then(() => {
|
||||
setToastAlert({
|
||||
type: "success",
|
||||
title: "Link Copied!",
|
||||
message: "Issue link copied to clipboard.",
|
||||
type: "info",
|
||||
title: "Link Copied Successfully",
|
||||
iconType: "copy",
|
||||
});
|
||||
});
|
||||
};
|
||||
|
@ -57,9 +57,9 @@ export const SinglePageDetailedItem: React.FC<TSingleStatProps> = ({
|
||||
`${originURL}/${workspaceSlug}/projects/${projectId}/pages/${page.id}`
|
||||
).then(() => {
|
||||
setToastAlert({
|
||||
type: "success",
|
||||
title: "Link Copied!",
|
||||
message: "Page link copied to clipboard.",
|
||||
type: "info",
|
||||
title: "Link Copied Successfully",
|
||||
iconType: "copy",
|
||||
});
|
||||
});
|
||||
};
|
||||
|
@ -58,9 +58,9 @@ export const SinglePageListItem: React.FC<TSingleStatProps> = ({
|
||||
`${originURL}/${workspaceSlug}/projects/${projectId}/pages/${page.id}`
|
||||
).then(() => {
|
||||
setToastAlert({
|
||||
type: "success",
|
||||
title: "Link Copied!",
|
||||
message: "Page link copied to clipboard.",
|
||||
type: "info",
|
||||
title: "Link Copied Successfully",
|
||||
iconType: "copy",
|
||||
});
|
||||
});
|
||||
};
|
||||
|
@ -127,9 +127,9 @@ export const ProjectSidebarList: FC = () => {
|
||||
typeof window !== "undefined" && window.location.origin ? window.location.origin : "";
|
||||
copyTextToClipboard(`${originURL}/${workspaceSlug}/projects/${projectId}/issues`).then(() => {
|
||||
setToastAlert({
|
||||
type: "success",
|
||||
title: "Link Copied!",
|
||||
message: "Project link copied to clipboard.",
|
||||
type: "info",
|
||||
title: "Link Copied Successfully",
|
||||
iconType: "copy",
|
||||
});
|
||||
});
|
||||
};
|
||||
|
@ -128,9 +128,9 @@ export const SingleProjectCard: React.FC<ProjectCardProps> = ({
|
||||
|
||||
copyTextToClipboard(`${originURL}/${workspaceSlug}/projects/${project.id}/issues`).then(() => {
|
||||
setToastAlert({
|
||||
type: "success",
|
||||
title: "Link Copied!",
|
||||
message: "Project link copied to clipboard.",
|
||||
type: "info",
|
||||
title: "Link Copied Successfully",
|
||||
iconType: "copy",
|
||||
});
|
||||
});
|
||||
};
|
||||
|
@ -247,9 +247,9 @@ const SinglePage: NextPage = () => {
|
||||
copyTextToClipboard(`${originURL}/${workspaceSlug}/projects/${projectId}/pages/${pageId}`).then(
|
||||
() => {
|
||||
setToastAlert({
|
||||
type: "success",
|
||||
title: "Link Copied!",
|
||||
message: "Page link copied to clipboard.",
|
||||
type: "info",
|
||||
title: "Link Copied Successfully",
|
||||
iconType: "copy",
|
||||
});
|
||||
}
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user