Skip to content

Commit

Permalink
feat(xo-web/import): all the import are thin, remove toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeauchamp authored and julien-f committed Jan 30, 2024
1 parent 2d047c4 commit 3ab2a83
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions packages/xo-web/src/xo-app/vm-import/esxi/esxi-import.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ class EsxiImport extends Component {
hostIp: '',
isConnected: false,
password: '',
thin: false,
skipSslVerify: false,
stopSource: false,
stopOnError: true,
Expand Down Expand Up @@ -65,8 +64,7 @@ class EsxiImport extends Component {
)

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

0 comments on commit 3ab2a83

Please sign in to comment.