Layout changes

This commit is contained in:
Scott E. Graves
2018-12-12 15:29:38 -06:00
parent 71d329b61b
commit 2e651af8ec
2 changed files with 5 additions and 4 deletions

View File

@@ -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((
<RootElem key={retryList.length}>
<p>Retrying {storageType} in {this.state.RetryItems[storageType].RetrySeconds}(s)</p>
<Button clicked={()=>this.cancelRetryMount(storageType, ()=> this.detectMounts())}>Cancel {storageType}</Button>
</RootElem>
));
if (retryListCount < Object.keys(this.state.RetryItems).length) {
retryList.push(<div style={{paddingTop: '8px'}} key={'b'+retryList.length}/>);
}
}
}