- fix getting value
- fix error reporting
- rift-16244
Change-Id: I79492200fd7128d6179c447dfef614f592427848
Signed-off-by: Bob Gallagher <bob.gallagher@riftio.com>
}
inputParametersHTML = (props) => {
let inputParameters = props.inputParameters;
}
inputParametersHTML = (props) => {
let inputParameters = props.inputParameters;
+ const handleChange = (i, event) => props.updateInputParam(i, event.target.value);
return inputParameters && inputParameters.map(function(input, i) {
return (
<div className="configure-nsd_section" key={i}>
<h3 className="launchpadCard_title">Input Parameters</h3>
<div className="inputControls">
return inputParameters && inputParameters.map(function(input, i) {
return (
<div className="configure-nsd_section" key={i}>
<h3 className="launchpadCard_title">Input Parameters</h3>
<div className="inputControls">
- <TextInput label={ input.label || input.xpath } type="text" onChange={props.updateInputParam.bind(self, i)} />
+ <TextInput label={ input.label || input.xpath } type="text" onChange={handleChange.bind(this, i)} />
});
return window.location.hash = 'launchpad/' + tokenizedHash[2];
}
});
return window.location.hash = 'launchpad/' + tokenizedHash[2];
}
- launchNSRError(error) {
var msg = 'Something went wrong while trying to instantiate. Check the error logs for more information';
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();
}
Alt.actions.global.showNotification.defer(msg);
Alt.actions.global.hideScreenLoader.defer();