This commit is contained in:
2021-08-04 17:17:16 -05:00
parent ce6d96e59b
commit e23c0086c2
75 changed files with 1255 additions and 1246 deletions

View File

@@ -6,8 +6,8 @@ import Button from '../../components/UI/Button/Button';
import IPCContainer from '../IPCContainer/IPCContainer';
import Modal from '../../components/UI/Modal/Modal';
import MountItem from './MountItem/MountItem';
import { connect } from 'react-redux';
import { notifyError } from '../../redux/actions/error_actions';
import {connect} from 'react-redux';
import {notifyError} from '../../redux/actions/error_actions';
import {
resetMountsState,
setAllowMount,
@@ -164,13 +164,13 @@ class MountItems extends IPCContainer {
if (mount) {
let result =
remote || s3 || provider === 'Skynet'
? { Valid: true, Success: true }
? {Valid: true, Success: true}
: this.sendSyncRequest(Constants.IPC_Check_Daemon_Version, {
Provider: provider,
Remote: remote,
S3: s3,
Version: this.props.InstalledVersion,
}).data;
Provider: provider,
Remote: remote,
S3: s3,
Version: this.props.InstalledVersion,
}).data;
const displayRetry = (msg) => {
this.displayRetryMount(provider, remote, s3, location, msg);
};
@@ -367,14 +367,14 @@ class MountItems extends IPCContainer {
);
if (++retryCount < Object.keys(this.state.RetryItems).length) {
retryList.push(
<div style={{ paddingTop: 'var(--default_spacing)' }} key={'rl_' + retryList.length} />
<div style={{paddingTop: 'var(--default_spacing)'}} key={'rl_' + retryList.length}/>
);
}
});
retryDisplay = (
<Modal>
<Box dxDark dxStyle={{ padding: 'var(--default_spacing)', minWidth: '70vw' }}>
<Box dxDark dxStyle={{padding: 'var(--default_spacing)', minWidth: '70vw'}}>
<h1
style={{
textAlign: 'center',
@@ -399,7 +399,7 @@ class MountItems extends IPCContainer {
/>
);
} else {
footerItems.push(<div key={'hi_' + footerItems.length} style={{ height: '27px' }} />);
footerItems.push(<div key={'hi_' + footerItems.length} style={{height: '27px'}}/>);
}
const mountItems = [];
@@ -408,7 +408,7 @@ class MountItems extends IPCContainer {
mountItems.push(
<div
key={'it_' + mountItems.length}
style={{ paddingTop: 'calc(var(--default_spacing) * 2.5)' }}
style={{paddingTop: 'calc(var(--default_spacing) * 2.5)'}}
/>
);
}
@@ -438,7 +438,7 @@ class MountItems extends IPCContainer {
}
return (
<div style={{ margin: 0, padding: 0 }}>
<div style={{margin: 0, padding: 0}}>
{retryDisplay}
<div
className={
@@ -446,7 +446,7 @@ class MountItems extends IPCContainer {
}>
{mountItems}
</div>
<div style={{ paddingTop: 'var(--default_spacing)' }} />
<div style={{paddingTop: 'var(--default_spacing)'}}/>
{footerItems}
</div>
);