fix(xo-web/createVms): dont noop confirm modal rejection (#3371)
Fixes #3268
This commit is contained in:
committed by
Julien Fontanet
parent
ee9c6817d6
commit
9722f2a5bd
@@ -9,6 +9,7 @@
|
||||
- [Self] Fix Self Service quotas not being correctly updated when deleting multiple VMs at a time (PR [#3368](https://github.com/vatesfr/xen-orchestra/pull/3368))
|
||||
- [Backup NG] Don't fail listing backups when a remote is broken [#3365](https://github.com/vatesfr/xen-orchestra/issues/3365) (PR [#3367](https://github.com/vatesfr/xen-orchestra/pull/3367))
|
||||
- [New XOSAN] Fix error sometimes occurring when selecting the pool (PR [#3370](https://github.com/vatesfr/xen-orchestra/pull/3370))
|
||||
- [New VM] Selecting multiple VMs and clicking Create then Cancel used to redirect to Home [#3268](https://github.com/vatesfr/xen-orchestra/issues/3268) (PR [#3371](https://github.com/vatesfr/xen-orchestra/pull/3371))
|
||||
|
||||
### Released packages
|
||||
|
||||
|
||||
@@ -1136,21 +1136,19 @@ export const createVms = (args, nameLabels, cloudConfigs) =>
|
||||
confirm({
|
||||
title: _('newVmCreateVms'),
|
||||
body: _('newVmCreateVmsConfirm', { nbVms: nameLabels.length }),
|
||||
}).then(
|
||||
() =>
|
||||
Promise.all(
|
||||
map(nameLabels, (
|
||||
name_label, // eslint-disable-line camelcase
|
||||
i
|
||||
) =>
|
||||
_call('vm.create', {
|
||||
...args,
|
||||
name_label,
|
||||
cloudConfig: get(cloudConfigs, i),
|
||||
})
|
||||
)
|
||||
),
|
||||
noop
|
||||
}).then(() =>
|
||||
Promise.all(
|
||||
map(nameLabels, (
|
||||
name_label, // eslint-disable-line camelcase
|
||||
i
|
||||
) =>
|
||||
_call('vm.create', {
|
||||
...args,
|
||||
name_label,
|
||||
cloudConfig: get(cloudConfigs, i),
|
||||
})
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
export const getCloudInitConfig = template =>
|
||||
|
||||
Reference in New Issue
Block a user