mirror of
https://github.com/artegoser/AnoPaper.git
synced 2024-11-24 21:06:21 +03:00
feat: a note that the note was public
This commit is contained in:
parent
990ef17d58
commit
d74763e02c
1 changed files with 6 additions and 1 deletions
|
@ -38,7 +38,12 @@ function PubNote() {
|
|||
else {
|
||||
if (note.save !== false) {
|
||||
localStorage.setItem("NoteName", note.name);
|
||||
localStorage.setItem("NoteText", note.text);
|
||||
localStorage.setItem(
|
||||
"NoteText",
|
||||
`*(публичная заметка) (была опубликована в ${printDate(
|
||||
note.time
|
||||
)})* \n${note.text}`
|
||||
);
|
||||
return <Navigate to="/notes/save-local" replace={true} />;
|
||||
} else {
|
||||
return (
|
||||
|
|
Loading…
Add table
Reference in a new issue