X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Flaunchpad%2Fsrc%2Finstantiate%2FinstantiateInputParams.jsx;h=6561649b97f93cf94687f333a0faefd11ecf7817;hp=164403cadd703db75180faf7695bee5d4e50c60c;hb=ab68734c52fb6d413e8241466c4517bd7af2477f;hpb=e0eecf285728f37ca256fdc8ee6656ea934040a2 diff --git a/skyquake/plugins/launchpad/src/instantiate/instantiateInputParams.jsx b/skyquake/plugins/launchpad/src/instantiate/instantiateInputParams.jsx index 164403cad..6561649b9 100644 --- a/skyquake/plugins/launchpad/src/instantiate/instantiateInputParams.jsx +++ b/skyquake/plugins/launchpad/src/instantiate/instantiateInputParams.jsx @@ -105,16 +105,24 @@ export default class InstantiateInputParams extends Component { } inputParametersHTML = (props) => { let inputParameters = props.inputParameters; - return inputParameters && inputParameters.map(function(input, i) { - return ( -
-

Input Parameters

-
- -
-
- ) - }) + const handleChange = (i, event) => props.updateInputParam(i, event.target.value); + let nsInputParamsHTML = []; + inputParameters && inputParameters.map(function(input, i) { + nsInputParamsHTML.push( +
+ +
+ ); + }); + var nsinput = ( +
+

NS Input Parameters

+ { + nsInputParamsHTML + } +
+ ); + return nsinput; } nsPlacementGroupsHTML = (props) => { let nsPlacementGroups = props.nsPlacementGroups; @@ -167,8 +175,8 @@ export default class InstantiateInputParams extends Component { return (
- - + + Remove
) @@ -259,10 +267,11 @@ export default class InstantiateInputParams extends Component { {vlds && vlds.map(function(v, i) { let currentType = v.type; let isVIM = (currentType == 'vim-network-name'); - let isUnknown = (currentType == 'unknown') || ((currentType != 'vim-network-name') && (currentType != 'ip-profile-ref')); + let isUnknown = (currentType == 'none') || ((currentType != 'vim-network-name') && (currentType != 'ip-profile-ref')); return (

VLD: {v['short-name'] ? v['short-name'] : v['name']}

+
{