Redux changes and refactoring

This commit is contained in:
Scott E. Graves
2019-06-07 23:13:05 -05:00
parent 6499ff4f79
commit 4b93c298c2
9 changed files with 75 additions and 45 deletions

View File

@@ -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,