Redux changes and refactoring
This commit is contained in:
@@ -73,7 +73,7 @@ class MountItems extends IPCContainer {
|
||||
if (!this.state.DisplayRetry) {
|
||||
this.props.setMountsBusy(true);
|
||||
this.sendRequest(Constants.IPC_Detect_Mounts, {
|
||||
Version: this.props.version,
|
||||
Version: this.props.InstalledVersion,
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -108,7 +108,7 @@ class MountItems extends IPCContainer {
|
||||
if (mount) {
|
||||
let result = this.sendSyncRequest(Constants.IPC_Check_Daemon_Version, {
|
||||
Provider: provider,
|
||||
Version: this.props.version
|
||||
Version: this.props.InstalledVersion
|
||||
}).data;
|
||||
if (result.Success) {
|
||||
if (result.Valid) {
|
||||
@@ -146,13 +146,13 @@ class MountItems extends IPCContainer {
|
||||
Location: location,
|
||||
NoConsoleSupported: this.props.noConsoleSupported,
|
||||
Provider: provider,
|
||||
Version: this.props.version,
|
||||
Version: this.props.InstalledVersion,
|
||||
});
|
||||
} else {
|
||||
this.sendRequest(Constants.IPC_Unmount_Drive, {
|
||||
Location: location,
|
||||
Provider: provider,
|
||||
Version: this.props.version,
|
||||
Version: this.props.InstalledVersion,
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -309,6 +309,7 @@ class MountItems extends IPCContainer {
|
||||
const mapStateToProps = state => {
|
||||
return {
|
||||
AutoMountProcessed: state.mounts.AutoMountProcessed,
|
||||
InstalledVersion: state.relver.InstalledVersion,
|
||||
MountState: state.mounts.MountState,
|
||||
Platform: state.common.Platform,
|
||||
ProviderState: state.mounts.ProviderState,
|
||||
|
||||
Reference in New Issue
Block a user