mirror of
https://github.com/usememos/memos.git
synced 2025-03-25 23:20:12 +01: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 = () => {
|
||||
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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user