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
2 changed files with 4 additions and 2 deletions

View File

@@ -4,6 +4,8 @@
### 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
- xo-server v5.37.0

View File

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