mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
feat: add notice when sharing private links in MemoDetail (#2942)
This commit is contained in:
@ -101,7 +101,11 @@ const MemoDetail = () => {
|
||||
|
||||
const handleCopyLinkBtnClick = () => {
|
||||
copy(`${window.location.origin}/m/${memo.name}`);
|
||||
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) => {
|
||||
|
Reference in New Issue
Block a user