[Partial browse mount location] [Layout changes]
This commit is contained in:
@@ -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)}
|
||||
|
||||
Reference in New Issue
Block a user