From: Laurence Maultsby Date: Fri, 9 Jun 2017 13:39:34 +0000 (-0400) Subject: Instantiate placement groups input fix X-Git-Tag: v2.0.2~3 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=115162235c0d1027445ca754900e7804d0c4ab06;p=osm%2FUI.git Instantiate placement groups input fix Signed-off-by: Laurence Maultsby --- diff --git a/skyquake/plugins/launchpad/src/instantiate/instantiateInputParams.jsx b/skyquake/plugins/launchpad/src/instantiate/instantiateInputParams.jsx index 6273d8cab..5ffb4bc67 100644 --- a/skyquake/plugins/launchpad/src/instantiate/instantiateInputParams.jsx +++ b/skyquake/plugins/launchpad/src/instantiate/instantiateInputParams.jsx @@ -168,8 +168,8 @@ export default class InstantiateInputParams extends Component { return (
- - + + Remove
) diff --git a/skyquake/plugins/launchpad/src/instantiate/instantiateStore.js b/skyquake/plugins/launchpad/src/instantiate/instantiateStore.js index 0d9e1b6e4..dcf6e9e09 100644 --- a/skyquake/plugins/launchpad/src/instantiate/instantiateStore.js +++ b/skyquake/plugins/launchpad/src/instantiate/instantiateStore.js @@ -310,14 +310,16 @@ class LaunchNetworkServiceStore { dataCenterID: JSON.parse(dataCenter.target.value) }); }, - placementGroupUpdate: (i, k, value) => { + placementGroupUpdate: (i, k, event) => { + let value = event.target.value; let pg = self['ns-placement-groups']; pg[i][k] = value; self.setState({ 'ns-placement-groups': pg }) }, - hostAggregateUpdate: (pgi, hai, k, value) => { + hostAggregateUpdate: (pgi, hai, k, event) => { + let value = event.target.value; let pg = self['ns-placement-groups']; let ha = pg[pgi]['host-aggregate'][hai]; ha[k] = value; @@ -349,14 +351,16 @@ class LaunchNetworkServiceStore { vnfFn = () => { let self = this; return { - placementGroupUpdate: (i, k, value) => { + placementGroupUpdate: (i, k, event) => { + let value = event.target.value; let pg = self['vnf-placement-groups']; pg[i][k] = value; self.setState({ 'vnf-placement-groups': pg }) }, - hostAggregateUpdate: (pgi, hai, k, value) => { + hostAggregateUpdate: (pgi, hai, k, event) => { + let value = event.target.value; let pg = self['vnf-placement-groups']; let ha = pg[pgi]['host-aggregate'][hai]; ha[k] = value;