mirror of
https://github.com/usememos/memos.git
synced 2025-10-18 10:16:00 +08:00
feat: add notice when sharing private links in MemoDetail (#2942)
This commit is contained in:
parent
60efd3ac32
commit
81aa9b107f
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue