Minor fixes
This commit is contained in:
@@ -34,7 +34,6 @@ import {
|
||||
import YesNo from './components/YesNo/YesNo';
|
||||
import {createModalConditionally} from './utils';
|
||||
import SkynetImport from './containers/SkynetImport/SkynetImport';
|
||||
import {displaySkynetImport} from './redux/actions/skynet_actions';
|
||||
import ApplicationBusy from './components/ApplicationBusy/ApplicationBusy';
|
||||
import SkynetExport from './containers/SkynetExport/SkynetExport';
|
||||
|
||||
@@ -112,7 +111,7 @@ class App extends IPCContainer {
|
||||
|
||||
let s3Supported = this.props.LocationsLookup[selectedVersion] &&
|
||||
this.props.LocationsLookup[selectedVersion].s3_support;
|
||||
//s3Supported = true;
|
||||
s3Supported = true;
|
||||
|
||||
const skynetSupported = this.props.LocationsLookup[selectedVersion] &&
|
||||
this.props.LocationsLookup[selectedVersion].skynet_support;
|
||||
@@ -323,7 +322,7 @@ const mapDispatchToProps = dispatch => {
|
||||
loadReleases: () => dispatch(loadReleases()),
|
||||
notifyError: (msg, critical, callback) => dispatch(notifyError(msg, critical, callback)),
|
||||
saveState: () => dispatch(saveState()),
|
||||
setDismissNewReleasesAvailable: dismiss => dispatch(setDismissNewReleasesAvailable),
|
||||
setDismissNewReleasesAvailable: dismiss => dispatch(setDismissNewReleasesAvailable(dismiss)),
|
||||
setNewReleasesAvailable: items => dispatch(setNewReleasesAvailable(items)),
|
||||
setDismissUIUpgrade: dismiss => dispatch(setDismissUIUpgrade(dismiss)),
|
||||
};
|
||||
|
||||
@@ -155,7 +155,7 @@ export const installDependency = (source, url, isWinFSP) => {
|
||||
export const installAndTestRelease = (source, version, appPlatform) => {
|
||||
return (dispatch, getState) => {
|
||||
if (ipcRenderer && getState().install.InstallTestActive) {
|
||||
const extractReleaseComplete = (event, arg) => {
|
||||
const extractReleaseComplete = () => {
|
||||
ipcRenderer.send(Constants.IPC_Delete_File, {
|
||||
FilePath: source,
|
||||
});
|
||||
|
||||
@@ -158,7 +158,7 @@ export const setProviderState = (provider, state) => {
|
||||
};
|
||||
|
||||
export const unmountAll = completedCallback => {
|
||||
return (dispatch, getState) => {
|
||||
return dispatch => {
|
||||
const ipcRenderer = getIPCRenderer();
|
||||
const unmountedCallback = () => {
|
||||
dispatch(resetMountsState());
|
||||
|
||||
@@ -53,8 +53,8 @@ const unmountAllDrives = () => {
|
||||
}
|
||||
|
||||
// Unmount all items
|
||||
for (const i in mountedLocations) {
|
||||
const data = mountedData[mountedLocations[i]];
|
||||
for (const mountLocation of mountedLocations) {
|
||||
const data = mountedData[mountLocation];
|
||||
helpers.stopMountProcessSync(data.Version, data.Provider, data.Remote, data.S3);
|
||||
}
|
||||
|
||||
@@ -252,7 +252,7 @@ const addListeners = (ipcMain, {setTrayImage, standardIPCReply}) => {
|
||||
}
|
||||
});
|
||||
|
||||
ipcMain.on(Constants.IPC_Unmount_All_Drives, (event, data) => {
|
||||
ipcMain.on(Constants.IPC_Unmount_All_Drives, event => {
|
||||
unmountAllDrives();
|
||||
standardIPCReply(event, Constants.IPC_Unmount_All_Drives_Reply);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user