TagSpaces is an offline, open source, document manager with tagging support
js styling
Ilian Sapundshiev12d5797ffa18
diff --git a/app/components/VerticalNavigation.js b/app/components/VerticalNavigation.jsindex 37c2fbe1d..3709c7a2f 100644--- a/app/components/VerticalNavigation.js+++ b/app/components/VerticalNavigation.js@@ -79,7 +79,6 @@ type Props = {setManagementPanelVisibility: boolean => void,isSelectDirectoryDialogOpened: boolean,toggleSelectDirectoryDialog: () => void,- // showSelectDirectoryDialog: () => void,shouldTogglePanel: string,currentDirectory: string};diff --git a/app/components/dialogs/EditLocationDialog.js b/app/components/dialogs/EditLocationDialog.jsindex d4b3c7d82..28b667f78 100644--- a/app/components/dialogs/EditLocationDialog.js+++ b/app/components/dialogs/EditLocationDialog.js@@ -89,19 +89,19 @@ class EditLocationDialog extends GenericDialog {openDirectory() {if (AppConfig.isElectron) {- this.setState({ openDirectoryButtonDisabled: true });- PlatformIO.selectDirectoryDialog().then((selectedPaths) => {- this.setState({- openDirectoryButtonDisabled: false,- name: extractDirectoryName(selectedPaths[0]),- path: selectedPaths[0]+ this.setState({ openDirectoryButtonDisabled: true });+ PlatformIO.selectDirectoryDialog().then((selectedPaths) => {+ this.setState({+ openDirectoryButtonDisabled: false,+ name: extractDirectoryName(selectedPaths[0]),+ path: selectedPaths[0]+ });+ this.handleValidation();+ return true;+ }).catch((err) => {+ this.setState({ openDirectoryButtonDisabled: false });+ console.log('selectDirectoryDialog failed with: ' + err);});- this.handleValidation();- return true;- }).catch((err) => {- this.setState({ openDirectoryButtonDisabled: false });- console.log('selectDirectoryDialog failed with: ' + err);- });} else {this.props.showSelectDirectoryDialog();}