TagSpaces is an offline, open source, document manager with tagging support
unifying loadParaentDirectory functionality
Ilian Sapundshiev875bb2e695a1
diff --git a/app/components/FolderContainer.js b/app/components/FolderContainer.jsindex 2c733c876..a960f2ba0 100644--- a/app/components/FolderContainer.js+++ b/app/components/FolderContainer.js@@ -397,6 +397,7 @@ class FolderContainer extends React.Component<Props, State> {loadDirectoryContent={this.props.loadDirectoryContent}openFileNatively={this.props.openFileNatively}openDirectory={this.props.openDirectory}+ loadParentDirectoryContent={this.props.loadParentDirectoryContent}reflectCreateEntry={this.props.reflectCreateEntry}openFile={this.props.openFile}toggleCreateFileDialog={this.props.toggleCreateFileDialog}diff --git a/app/components/menus/DirectoryMenu.js b/app/components/menus/DirectoryMenu.jsindex dbd20193d..fe237b63c 100644--- a/app/components/menus/DirectoryMenu.js+++ b/app/components/menus/DirectoryMenu.js@@ -53,6 +53,7 @@ type Props = {deleteDirectory: (path: string) => void,reflectCreateEntry?: (path: string, isFile: boolean) => void,toggleCreateFileDialog?: () => void,+ loadParentDirectoryContent?: () => void,openFileNatively?: (path: string) => void,perspectiveMode: boolean,showNotification?: (@@ -85,10 +86,7 @@ class DirectoryMenu extends React.Component<Props, State> {openParentDirectory = () => {this.props.onClose();- const parentDirectory = extractParentDirectoryPath(- this.props.directoryPath- );- this.props.loadDirectoryContent(parentDirectory);+ this.props.loadParentDirectoryContent();};openDirectory = () => {