diff --git a/apps/client/src/widgets/FloatingButtonsDefinitions.tsx b/apps/client/src/widgets/FloatingButtonsDefinitions.tsx index 1cdcf30cf..e631892cd 100644 --- a/apps/client/src/widgets/FloatingButtonsDefinitions.tsx +++ b/apps/client/src/widgets/FloatingButtonsDefinitions.tsx @@ -69,7 +69,7 @@ export const MOBILE_FLOATING_BUTTONS: FloatingButtonsList = [ ] function RefreshBackendLogButton({ note, parentComponent, noteContext, isDefaultViewMode }: FloatingButtonContext) { - const isEnabled = note.noteId === "_backendLog" && isDefaultViewMode; + const isEnabled = (note.noteId === "_backendLog" || note.type === "render") && isDefaultViewMode; return isEnabled && (null); const [ renderNotesFound, setRenderNotesFound ] = useState(false); @@ -22,6 +22,10 @@ export default function Render({ note, noteContext }: TypeWidgetProps) { if (noteContext?.isActive()) return; refresh(); }); + useTriliumEvent("refreshData", ({ ntxId: eventNtxId }) => { + if (eventNtxId !== ntxId) return; + refresh(); + }); return (