fix(xo-web/vm/advanced): remove noop (#5700)

See https://github.com/vatesfr/xen-orchestra/pull/3774/files#r602860699
This commit is contained in:
Rajaa.BARHTAOUI 2021-03-29 15:10:48 +02:00 committed by GitHub
parent bb671f0e93
commit 8973c9550c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ import { injectState, provideState } from 'reaclette'
import { Number, Select as EditableSelect, Size, Text, XoSelect } from 'editable'
import { Select, Toggle } from 'form'
import { SelectResourceSet, SelectRole, SelectSubject, SelectVgpuType } from 'select-objects'
import { addSubscriptions, connectStore, formatSize, getVirtualizationModeLabel, noop, osFamily } from 'utils'
import { addSubscriptions, connectStore, formatSize, getVirtualizationModeLabel, osFamily } from 'utils'
import { every, filter, find, isEmpty, keyBy, map, times, some, uniq } from 'lodash'
import {
addAcl,
@ -316,7 +316,7 @@ const Acls = decorate([
return error(_('addAclsErrorTitle'), _('addAclsErrorMessage'))
}
return Promise.all(map(subjects, subject => addAcl({ subject, object: vm, action }))), noop
return Promise.all(map(subjects, subject => addAcl({ subject, object: vm, action })))
})
.catch(err => err && error(_('addAclsErrorTitle'), err.message || String(err))),
removeAcl: (_, { currentTarget: { dataset } }) => (_, { vm: object }) =>