TagSpaces is an offline, open source, document manager with tagging support
fixing location menu
Ilian Sapundshiev1b943746ec66
diff --git a/app/components/FolderContainer.js b/app/components/FolderContainer.jsindex a5d4e621d..23b145378 100644--- a/app/components/FolderContainer.js+++ b/app/components/FolderContainer.js@@ -375,6 +375,7 @@ class FolderContainer extends React.Component<Props, State> {</Button><LocationMenuopen={this.state.locationChooserMenuOpened}+ openLocation={this.props.openLocation}toggleLocationChooser={this.toggleLocationChooser}menuAnchorEl={this.state.locationChooserMenuAnchorEl}/>diff --git a/app/components/LocationMenu.js b/app/components/LocationMenu.jsindex c60eb37b4..b80b4e8f4 100644--- a/app/components/LocationMenu.js+++ b/app/components/LocationMenu.js@@ -43,16 +43,15 @@ import { getLocations, type Location } from '../reducers/locations';class LocationMenu extends React.Component { // <Props, State> {openLocation = locationId => {- // this.props.openLocation(locationId);- // this.props.toggleLocationChooser();+ this.props.openLocation(locationId);+ this.props.toggleLocationChooser();};-render() {return (<Menuid="simple-menu"- open={this.props.locationChooserMenuOpened}+ open={this.props.open}anchorEl={this.props.menuAnchorEl}onClose={this.props.toggleLocationChooser}PaperProps={{@@ -87,6 +86,4 @@ function mapStateToProps(state) {};}-export default connect(mapStateToProps)(- withStyles(LocationMenu)-);+export default connect(mapStateToProps)(LocationMenu);