[Partial browse mount location] [Layout changes]

This commit is contained in:
Scott E. Graves
2018-12-13 15:00:07 -06:00
parent 98e06b4498
commit 8618bf9965
5 changed files with 58 additions and 16 deletions

View File

@@ -82,6 +82,17 @@ class MountItems extends Component {
}
};
handleBrowseLocation = (storageType, location) => {
location = ipcRenderer.sendSync(Constants.IPC_Browse_Directory, {
Title: storageType + ' Mount Location',
Location: location,
});
if (location && (location.length > 0)) {
console.log(location);
//this.handleMountLocationChanged(storageType, location);
}
};
handleMountLocationChanged = (storageType, value) => {
if (this.props.platform === 'win32') {
this.props.changed(storageType, this.state[storageType].DriveLetters[value]);
@@ -287,6 +298,7 @@ class MountItems extends Component {
autoMountChanged={(e)=>this.props.autoMountChanged(provider, e)}
autoRestart={this.props[providerLower].AutoRestart}
autoRestartChanged={(e)=>this.props.autoRestartChanged(provider, e)}
browseClicked={this.handleBrowseLocation}
changed={(e) => this.handleMountLocationChanged(provider, e.target.value)}
clicked={this.handleMountUnMount}
configClicked={()=>this.props.configClicked(provider)}