mirror of
https://github.com/zadam/trilium.git
synced 2025-10-19 06:38:59 +02:00
feat(collection/presentation): react to color changes
This commit is contained in:
parent
ceedcb1a2c
commit
3ff5ba79f6
@ -25,7 +25,8 @@ export default function PresentationView({ note, noteIds }: ViewModeProps<{}>) {
|
||||
}
|
||||
|
||||
useTriliumEvent("entitiesReloaded", ({ loadResults }) => {
|
||||
if (loadResults.getNoteIds().find(noteId => noteIds.includes(noteId))) {
|
||||
if (loadResults.getNoteIds().find(noteId => noteIds.includes(noteId)) ||
|
||||
loadResults.getAttributeRows().find(attr => attr.noteId && attr.name?.startsWith("slide:") && noteIds.includes(attr.noteId))) {
|
||||
refresh();
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user