From 2e651af8ec2f1bf0a539c9735813321e7d52058e Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Wed, 12 Dec 2018 15:29:38 -0600 Subject: [PATCH] Layout changes --- electron.js | 4 ---- src/containers/MountItems/MountItems.js | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/electron.js b/electron.js index fb93e0f..546ca87 100644 --- a/electron.js +++ b/electron.js @@ -386,7 +386,6 @@ ipcMain.on(Constants.IPC_Detect_Mounts, (event, data) => { }); }) .catch(error => { - console.log(error); if (os.platform() === 'win32') { grabDriveLetters({}); } @@ -502,7 +501,6 @@ ipcMain.on(Constants.IPC_Grab_UI_Releases, (event) => { }); ipcMain.on(Constants.IPC_Install_Dependency, (event, data) => { - console.log(data); if (data.Source.toLowerCase().endsWith('.dmg')) { helpers .executeAsync('hdiutil', ['attach', data.Source]) @@ -513,7 +511,6 @@ ipcMain.on(Constants.IPC_Install_Dependency, (event, data) => { }); }) .catch(error=> { - console.log(error); standardIPCReply(event, Constants.IPC_Install_Dependency_Reply, { Source: data.Source, URL: data.URL, @@ -593,7 +590,6 @@ ipcMain.on(Constants.IPC_Mount_Drive, (event, data) => { StorageType: data.StorageType, }; const errorHandler = (pid, error) => { - console.log(pid, error); if (mountedLocations.indexOf(data.Location) !== -1) { mountedLocations.splice(mountedLocations.indexOf(data.Location), 1); delete mountedData[data.Location]; diff --git a/src/containers/MountItems/MountItems.js b/src/containers/MountItems/MountItems.js index ced4801..4d82010 100644 --- a/src/containers/MountItems/MountItems.js +++ b/src/containers/MountItems/MountItems.js @@ -248,14 +248,19 @@ class MountItems extends Component { let retryDisplay; if (this.state.DisplayRetry) { let retryList = []; + let retryListCount = 0; for (const storageType in this.state.RetryItems) { if (this.state.RetryItems.hasOwnProperty(storageType)) { + retryListCount++; retryList.push((

Retrying {storageType} in {this.state.RetryItems[storageType].RetrySeconds}(s)

)); + if (retryListCount < Object.keys(this.state.RetryItems).length) { + retryList.push(
); + } } }