feat: Allow to disable showing paths to folders (#1274)

https://github.com/Termix-SSH/Support/issues/1274
This commit is contained in:
LukeGus committed 2026-09-20 18:17:29 -05:00
1 parent 6ce5e78165
commit d0c25cf183
7 files changed
+46 -1

No files matched your search

+4
View File
@@ -87,6 +87,7 @@ export function SidebarTree({
trayTrigger = "hover",
showTags = true,
openOnDoubleClick = false,
showFolderPaths = true,
}: {
children: (Host | HostFolder)[];
onOpenTab: (
@@ -108,6 +109,8 @@ export function SidebarTree({
trayTrigger?: HostTrayTrigger;
showTags?: boolean;
openOnDoubleClick?: boolean;
/** When false, nested folders hide the parent-path breadcrumb before their name. */
showFolderPaths?: boolean;
}) {
const { t } = useTranslation();
// Knobs with no other owner come straight from the interface preset; the
@@ -996,6 +999,7 @@ export function SidebarTree({
trayTrigger={trayTrigger}
showTags={showTags}
openOnDoubleClick={openOnDoubleClick}
showFolderPaths={showFolderPaths}
arrangeMode={arrangeMode}
isDragging={
draggedReorderKey === `folder:${item.path ?? item.name}`