mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 14:25:51 +01:00
edited notes: space instead of comma for flexible styling
This commit is contained in:
@@ -13,8 +13,8 @@ export default function EditedNotesTab({ note }: TabContext) {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!note) return;
|
if (!note) return;
|
||||||
server.get<EditedNotesResponse>(`edited-notes/${note.getLabelValue("dateNote")}`).then(async editedNotes => {
|
server.get<EditedNotesResponse>(`edited-notes/${note.getLabelValue("dateNote")}`).then(async editedNotes => {
|
||||||
editedNotes = editedNotes.filter((n) => n.noteId !== note.noteId);
|
editedNotes = editedNotes.filter((n) => n.noteId !== note.noteId);
|
||||||
const noteIds = editedNotes.flatMap((n) => n.noteId);
|
const noteIds = editedNotes.flatMap((n) => n.noteId);
|
||||||
await froca.getNotes(noteIds, true); // preload all at once
|
await froca.getNotes(noteIds, true); // preload all at once
|
||||||
setEditedNotes(editedNotes);
|
setEditedNotes(editedNotes);
|
||||||
});
|
});
|
||||||
@@ -41,11 +41,11 @@ export default function EditedNotesTab({ note }: TabContext) {
|
|||||||
)}
|
)}
|
||||||
</span>
|
</span>
|
||||||
)
|
)
|
||||||
}))}
|
}), " ")}
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="no-edited-notes-found">{t("edited_notes.no_edited_notes_found")}</div>
|
<div className="no-edited-notes-found">{t("edited_notes.no_edited_notes_found")}</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user