diff --git a/src/containers/MountItems/MountItems.css b/src/containers/MountItems/MountItems.css index de49eee..e20e6d6 100644 --- a/src/containers/MountItems/MountItems.css +++ b/src/containers/MountItems/MountItems.css @@ -10,7 +10,7 @@ .MountItemsRemote { padding: 0; margin: 0; - height: 151px; + height: 121px; width: 100%; box-sizing: border-box; overflow-x: hidden; diff --git a/src/containers/MountItems/MountItems.js b/src/containers/MountItems/MountItems.js index b09b9dd..eaeb91c 100644 --- a/src/containers/MountItems/MountItems.js +++ b/src/containers/MountItems/MountItems.js @@ -141,7 +141,6 @@ class MountItems extends IPCContainer { }; handleMountUnMount = (provider, remote, mount, location) => { - console.log(provider, remote, mount, location); if (!location || (location.trim().length === 0)) { this.props.notifyError('Mount location is not set'); } else { @@ -284,18 +283,17 @@ class MountItems extends IPCContainer { let retryDisplay; if (this.state.DisplayRetry) { let retryList = []; - let retryListCount = 0; + let retryCount = 0; for (const provider in this.state.RetryItems) { if (this.state.RetryItems.hasOwnProperty(provider)) { - retryListCount++; if (this.state.RetryItems[provider].RetryMessage) { - retryList.push(
{this.state.RetryItems[provider].RetryMessage}
); + retryList.push({this.state.RetryItems[provider].RetryMessage}
); } - retryList.push(); - if (retryListCount < Object.keys(this.state.RetryItems).length) { - retryList.push(); + retryList.push(); + if (retryCount++ < Object.keys(this.state.RetryItems).length) { + retryList.push(); } } } @@ -310,13 +308,14 @@ class MountItems extends IPCContainer { ) } - let items = []; + let headerItems = []; if (this.props.remoteSupported) { - items.push(