mirror of
https://github.com/usememos/memos.git
synced 2025-04-13 00:52:07 +02:00
feat: add notice when sharing private links in MemoDetail (#2942)
This commit is contained in:
parent
60efd3ac32
commit
81aa9b107f
@ -101,7 +101,11 @@ const MemoDetail = () => {
|
|||||||
|
|
||||||
const handleCopyLinkBtnClick = () => {
|
const handleCopyLinkBtnClick = () => {
|
||||||
copy(`${window.location.origin}/m/${memo.name}`);
|
copy(`${window.location.origin}/m/${memo.name}`);
|
||||||
toast.success(t("message.succeed-copy-link"));
|
if (memo.visibility !== Visibility.PUBLIC) {
|
||||||
|
toast.success(t("message.succeed-copy-link-not-public"));
|
||||||
|
} else {
|
||||||
|
toast.success(t("message.succeed-copy-link"));
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleCommentCreated = async (commentId: number) => {
|
const handleCommentCreated = async (commentId: number) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user