From b2cf1293e38c64c8d624a29f33e11ba38733e94f Mon Sep 17 00:00:00 2001 From: Laurence Maultsby Date: Fri, 9 Jun 2017 09:39:34 -0400 Subject: [PATCH] Instantiate placement groups input fix Signed-off-by: Laurence Maultsby --- .../src/instantiate/instantiateInputParams.jsx | 4 ++-- .../launchpad/src/instantiate/instantiateStore.js | 12 ++++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) 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; -- 2.25.1