fix(xo-web/new-network): PIF should not be required (#4010)

Introduced by 7a2a88b7ad

Requiring a PIF prevented from creating private networks
This commit is contained in:
Pierre Donias 2019-03-04 17:45:48 +01:00 committed by GitHub
parent 008eb995ed
commit 312b33ae85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -4,6 +4,8 @@
### Bug fixes ### Bug fixes
- [New network] PIF was wrongly required which prevented from creating a private network (PR [#4010](https://github.com/vatesfr/xen-orchestra/pull/4010))
### Released packages ### Released packages
- xo-server v5.37.0 - xo-server v5.37.0

View File

@ -92,7 +92,7 @@ const NewNetwork = decorate([
description, description,
mtu, mtu,
name, name,
pif: pif.id, pif: pif == null ? undefined : pif.id,
pool: pool.id, pool: pool.id,
vlan, vlan,
}) })
@ -160,7 +160,7 @@ const NewNetwork = decorate([
multi={bonded} multi={bonded}
onChange={effects.onChangePif} onChange={effects.onChangePif}
predicate={pifPredicate} predicate={pifPredicate}
required required={bonded}
value={bonded ? pifs : pif} value={bonded ? pifs : pif}
/> />
<label>{_('newNetworkName')}</label> <label>{_('newNetworkName')}</label>