From 8d3a5ec71ebb2f7f2932fee5732ae62718ca8efb Mon Sep 17 00:00:00 2001 From: Bob Gallagher Date: Mon, 24 Apr 2017 09:22:56 -0400 Subject: [PATCH] Fix handling of Input Parameters for NSR instantiation - fix getting value - fix error reporting - rift-16244 Change-Id: I79492200fd7128d6179c447dfef614f592427848 Signed-off-by: Bob Gallagher --- .../launchpad/src/instantiate/instantiateInputParams.jsx | 3 ++- .../plugins/launchpad/src/instantiate/instantiateStore.js | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/skyquake/plugins/launchpad/src/instantiate/instantiateInputParams.jsx b/skyquake/plugins/launchpad/src/instantiate/instantiateInputParams.jsx index d1e295c03..6273d8cab 100644 --- a/skyquake/plugins/launchpad/src/instantiate/instantiateInputParams.jsx +++ b/skyquake/plugins/launchpad/src/instantiate/instantiateInputParams.jsx @@ -105,12 +105,13 @@ export default class InstantiateInputParams extends Component { } inputParametersHTML = (props) => { let inputParameters = props.inputParameters; + const handleChange = (i, event) => props.updateInputParam(i, event.target.value); return inputParameters && inputParameters.map(function(input, i) { return (

Input Parameters

- +
) diff --git a/skyquake/plugins/launchpad/src/instantiate/instantiateStore.js b/skyquake/plugins/launchpad/src/instantiate/instantiateStore.js index 3ec2a8029..0e91ee384 100644 --- a/skyquake/plugins/launchpad/src/instantiate/instantiateStore.js +++ b/skyquake/plugins/launchpad/src/instantiate/instantiateStore.js @@ -189,10 +189,10 @@ class LaunchNetworkServiceStore { }); return window.location.hash = 'launchpad/' + tokenizedHash[2]; } - launchNSRError(error) { + launchNSRError(data) { var msg = 'Something went wrong while trying to instantiate. Check the error logs for more information'; - if(error) { - msg = error; + if (data.error) { + msg = data.error; } Alt.actions.global.showNotification.defer(msg); Alt.actions.global.hideScreenLoader.defer(); -- 2.25.1