From 7d5f8997f9efa65cb5e6c6f9486d8440d348bdb6 Mon Sep 17 00:00:00 2001 From: Laurence Maultsby Date: Wed, 25 Jan 2017 15:43:28 -0500 Subject: [PATCH] Config Parameter Map enhancements Signed-off-by: Laurence Maultsby --- .../ConfigPrimitiveParameters.js | 25 ++++++++++--------- .../src/src/stores/ComposerAppStore.js | 5 +++- .../src/styles/EditConfigParameterMap.scss | 6 ++--- 3 files changed, 20 insertions(+), 16 deletions(-) diff --git a/skyquake/plugins/composer/src/src/components/ConfigPrimitiveParameters/ConfigPrimitiveParameters.js b/skyquake/plugins/composer/src/src/components/ConfigPrimitiveParameters/ConfigPrimitiveParameters.js index 912895c63..4c7bbdde9 100644 --- a/skyquake/plugins/composer/src/src/components/ConfigPrimitiveParameters/ConfigPrimitiveParameters.js +++ b/skyquake/plugins/composer/src/src/components/ConfigPrimitiveParameters/ConfigPrimitiveParameters.js @@ -157,16 +157,16 @@ const ConfigPrimitiveParameters = React.createClass({ return (
-
-
-
- Request -
-
- Source -
-
+
+
+
+ Primitive Parameter Request +
+
+ Data Source +
+
{ MapData.Requests.map(function(r, i) { let currentValue = {}; @@ -181,7 +181,9 @@ const ConfigPrimitiveParameters = React.createClass({ requestValue: r.name, requestIndex: r.vnfdIndex } - SourceOptions.push() + if (r.vnfdIndex !== s.vnfdIndex) { + SourceOptions.push() + } }) //Finds current value NSContainer.model['config-parameter-map'] && NSContainer.model['config-parameter-map'].map((c)=>{ @@ -202,7 +204,7 @@ const ConfigPrimitiveParameters = React.createClass({ let currentMapIndex = (mapCounter > 0) ? (mapCounter) - 1: 0; return (
-
{`${r.vnfdName} (${r.vnfdIndex}) / ${r.parameter && r.parameter[0]['config-primitive-name-ref']} / ${r.parameter && r.parameter[0]['config-primitive-parameter-ref']}`}
+
{`${r.vnfdName} (${r.vnfdIndex}): ${r.name}`}