TagSpaces is an offline, open source, document manager with tagging support
fix missing Directory Button in PathBreadcrumbs
sytolkf22b25ff5985
diff --git a/app/components/PathBreadcrumbs.tsx b/app/components/PathBreadcrumbs.tsxindex ae67355a3..593c79de1 100644--- a/app/components/PathBreadcrumbs.tsx+++ b/app/components/PathBreadcrumbs.tsx@@ -180,29 +180,25 @@ function PathBreadcrumbs(props: Props) {);});}- if (currentDirectoryPath) {- const curDirBreadcrumb = (- <Tooltip- key={currentDirectoryPath}- title={- t('core:openDirectoryMenu') + ' - ' + (currentDirectoryPath || '')- }- >- <StyledBreadcrumb- data-tid="folderContainerOpenDirMenu"- label={currentFolderName}- icon={currentFolderChipIcon}- deleteIcon={<ExpandMoreIcon />}- onDelete={openDirectoryMenu}- onClick={openDirectoryMenu}- onContextMenu={openDirectoryMenu}- style={{ marginRight: 2 }}- />- </Tooltip>- );- breadcrumbs = [...breadcrumbs, curDirBreadcrumb];- }- return breadcrumbs;+ const curDirBreadcrumb = (+ <Tooltip+ title={+ t('core:openDirectoryMenu') + ' - ' + (currentDirectoryPath || '')+ }+ >+ <StyledBreadcrumb+ data-tid="folderContainerOpenDirMenu"+ label={currentFolderName}+ icon={currentFolderChipIcon}+ deleteIcon={<ExpandMoreIcon />}+ onDelete={openDirectoryMenu}+ onClick={openDirectoryMenu}+ onContextMenu={openDirectoryMenu}+ style={{ marginRight: 2 }}+ />+ </Tooltip>+ );+ return [...breadcrumbs, curDirBreadcrumb];}return (diff --git a/app/services/utils-io.ts b/app/services/utils-io.tsindex b075f4388..b3715004d 100644--- a/app/services/utils-io.ts+++ b/app/services/utils-io.ts@@ -1552,7 +1552,7 @@ export function getFolderBgndPath(path: string,lastBackgroundImageChange: any) {- if (path) {+ if (path !== undefined) {return getBgndPath(getBgndFileLocationForDirectory(path, PlatformIO.getDirSeparator()),lastBackgroundImageChange