Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(status_bar): hide note paths in hidden notes
Elian Doran1a65c5e13e8e
diff --git a/apps/client/src/widgets/layout/StatusBar.tsx b/apps/client/src/widgets/layout/StatusBar.tsxindex 50c048760b..7d1b17e913 100644--- a/apps/client/src/widgets/layout/StatusBar.tsx+++ b/apps/client/src/widgets/layout/StatusBar.tsx@@ -42,6 +42,7 @@ export default function StatusBar() {const [ attributesShown, setAttributesShown ] = useState(false);const context: StatusBarContext | undefined | null = note && noteContext && { note, notePath, noteContext, viewScope, hoistedNoteId };const attributesContext: AttributesProps | undefined | null = context && { ...context, attributesShown, setAttributesShown };+ const isHiddenNote = note?.isInHiddenSubtree();return (<div className="status-bar">@@ -53,7 +54,7 @@ export default function StatusBar() {<div className="actions-row"><LanguageSwitcher {...context} />- <NotePaths {...context} />+ {!isHiddenNote && <NotePaths {...context} />}<AttributesButton {...attributesContext} /><AttachmentCount {...context} /><BacklinksBadge {...context} />