Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/client/src/widgets/layout/StatusBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ function NotePaths({ note, hoistedNoteId, notePath }: StatusBarContext) {
const dropdownRef = useRef<BootstrapDropdown>(null);
const sortedNotePaths = useSortedNotePaths(note, hoistedNoteId);
const count = sortedNotePaths?.length ?? 0;
const enabled = count > 1;
const enabled = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This change makes sense to always show the note paths. As you mentioned in the PR description, you've kept the enabled flag for future configurability. It would be beneficial to add a comment in the code to reflect this intent. This will help other developers understand why this is hardcoded and that it's intended to be changed later.

Suggested change
const enabled = true;
// Always show note paths. This may become configurable in the future.
const enabled = true;


// Keyboard shortcut.
useTriliumEvent("toggleRibbonTabNotePaths", () => enabled && dropdownRef.current?.show());
Expand Down