From: Bob Gallagher Date: Wed, 3 May 2017 21:37:52 +0000 (-0400) Subject: Merge “Support new package file management scheme” into master X-Git-Tag: v3.0.0rc~26 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=commitdiff_plain;h=3654818ffc4facfa6d4e2c26479cdb6c7e75bbaa;hp=52aa54d2355f218972b0a85c29476827f00487f2 Merge “Support new package file management scheme” into master * commit '6051adb19db86ff89f3b0ce0a339c2f5ccea9522': Signed-off-by: Bob Gallagher --- diff --git a/skyquake/plugins/composer/src/src/libraries/model/DescriptorModelMetaFactory.js b/skyquake/plugins/composer/src/src/libraries/model/DescriptorModelMetaFactory.js index 69098ec2d..1ba891256 100644 --- a/skyquake/plugins/composer/src/src/libraries/model/DescriptorModelMetaFactory.js +++ b/skyquake/plugins/composer/src/src/libraries/model/DescriptorModelMetaFactory.js @@ -102,19 +102,15 @@ function serialize_leaf_empty(data) { function serialize_leaf_list(data) { data = data[this.name]; if (data) { - commaSeparatedValues = data.reduce((d, v) => { - let leaf = Serializer.leaf.call(this, d); - let value = leaf & leaf[this.name]; - if (value && value.length) { - if (v.length) { - v += ', '; - } - v += value; + data = data.reduce((result, value) => { + if (value !== '' && value !== null && value !== undefined && typeof value !== 'object') { + result.push(value); } - }, ""); - if (commaSeparatedValues.length) { + return result; + }, []); + if (data.length){ let obj = {}; - obj[this.name] = commaSeparatedValues; + obj[this.name] = data; return obj; } } 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();