feat(xo-web/import): all the import are thin, remove toggle

This commit is contained in:
Florent Beauchamp 2024-01-30 10:28:11 +00:00 committed by Julien Fontanet
parent 2d047c4fef
commit 3ab2a8354b

View File

@ -30,7 +30,6 @@ class EsxiImport extends Component {
hostIp: '', hostIp: '',
isConnected: false, isConnected: false,
password: '', password: '',
thin: false,
skipSslVerify: false, skipSslVerify: false,
stopSource: false, stopSource: false,
stopOnError: true, stopOnError: true,
@ -65,8 +64,7 @@ class EsxiImport extends Component {
) )
_importVms = () => { _importVms = () => {
const { concurrency, hostIp, network, password, skipSslVerify, sr, stopSource, stopOnError, thin, user, vms } = const { concurrency, hostIp, network, password, skipSslVerify, sr, stopSource, stopOnError, user, vms } = this.state
this.state
return importVmsFromEsxi({ return importVmsFromEsxi({
concurrency: +concurrency, concurrency: +concurrency,
host: hostIp, host: hostIp,
@ -76,7 +74,6 @@ class EsxiImport extends Component {
sslVerify: !skipSslVerify, sslVerify: !skipSslVerify,
stopOnError, stopOnError,
stopSource, stopSource,
thin,
user, user,
vms: vms.map(vm => vm.value), vms: vms.map(vm => vm.value),
}) })
@ -114,7 +111,6 @@ class EsxiImport extends Component {
sr: undefined, sr: undefined,
stopSource: false, stopSource: false,
stopOnError: true, stopOnError: true,
thin: false,
vms: undefined, vms: undefined,
}) })
} }
@ -132,7 +128,6 @@ class EsxiImport extends Component {
sr, sr,
stopSource, stopSource,
stopOnError, stopOnError,
thin,
user, user,
vms, vms,
vmsById, vmsById,
@ -248,13 +243,6 @@ class EsxiImport extends Component {
/> />
</InputCol> </InputCol>
</Row> </Row>
<Row>
<LabelCol>{_('esxiImportThin')}</LabelCol>
<InputCol>
<Toggle onChange={this.toggleState('thin')} value={thin} />
<small className='form-text text-muted'>{_('esxiImportThinDescription')}</small>
</InputCol>
</Row>
<Row> <Row>
<LabelCol>{_('esxiImportStopSource')}</LabelCol> <LabelCol>{_('esxiImportStopSource')}</LabelCol>
<InputCol> <InputCol>