X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Fcomposer%2Fsrc%2Fsrc%2Fcomponents%2FConfigPrimitiveParameters%2FConfigPrimitiveParameters.js;h=dd371d3b1d9f7b3b8b70c116512f5f097d963d17;hb=e1d37ae51d33ae742d4b872b31a09bcbc1feaf2c;hp=362106175ee15abd2d4d45f4e2acf3d5a9df00a1;hpb=1065d361f1c1b0c4f1334efe736f2e6e940e7035;p=osm%2FUI.git diff --git a/skyquake/plugins/composer/src/src/components/ConfigPrimitiveParameters/ConfigPrimitiveParameters.js b/skyquake/plugins/composer/src/src/components/ConfigPrimitiveParameters/ConfigPrimitiveParameters.js index 362106175..dd371d3b1 100644 --- a/skyquake/plugins/composer/src/src/components/ConfigPrimitiveParameters/ConfigPrimitiveParameters.js +++ b/skyquake/plugins/composer/src/src/components/ConfigPrimitiveParameters/ConfigPrimitiveParameters.js @@ -49,7 +49,7 @@ import imgAdd from '../../../../node_modules/open-iconic/svg/plus.svg' import imgConnection from '../../../../node_modules/open-iconic/svg/random.svg' import imgClassifier from '../../../../node_modules/open-iconic/svg/spreadsheet.svg' import imgReorder from '../../../../node_modules/open-iconic/svg/menu.svg' -import EditDescriptorModelProperties from '../EditDescriptorModelProperties' +import EditConfigParameterMap from '../EditConfigParameterMap' function configParameterMapMap(ap, i) { const context = this; @@ -62,87 +62,6 @@ function configParameterMapMap(ap, i) { ) - /* - // const colors = fg.colors; - // const stylePrimary = {borderColor: colors.primary}; - // const styleSecondary = {borderColor: colors.secondary}; - - // context.stylePrimary = stylePrimary; - // context.styleSecondary = styleSecondary; - - // const rspMap = fg.rsp.reduce((map, rsp) => { - // map[rsp.id] = rsp; - // rsp.classifier = []; - // return map; - // }, {}); - - // fg.classifier.forEach(classifier => { - // const rsp = rspMap[classifier.model['rsp-id-ref']]; - // if (rsp) { - // rsp.classifier.push(classifier); - // } - // }); - - // function onClickRemoveForwardingGraph(fg, event) { - // event.preventDefault(); - // const root = fg.getRoot(); - // fg.remove(); - // CatalogItemsActions.catalogItemDescriptorChanged(root); - // } - - // function onClickAddClassifier(context, fg, event) { - // event.preventDefault(); - // fg.createClassifier(); - // CatalogItemsActions.catalogItemDescriptorChanged(fg.getRoot()); - // } - - // function onClickToggleShowAllFGPaths(fg, event) { - // //event.preventDefault(); - // event.stopPropagation(); - // fg.uiState.showPaths = event.target.checked; - // fg.rsp.forEach(rsp => rsp.uiState.showPath = event.target.checked); - // CatalogItemsActions.catalogItemMetaDataChanged(fg.getRoot().model); - // } - - // if (!fg.uiState.hasOwnProperty('showPaths')) { - // fg.uiState.showPaths = true; - // fg.rsp.forEach(d => d.uiState.showPath = true); - // } - - // const toggleSelectAllPaths = ( - // {}} onClick={onClickToggleShowAllFGPaths.bind(null, fg)} /> - // ); - - // const srpFactory = DescriptorModelFactory.newRecordServicePathFactory({}, fg); - // srpFactory.uid = fg.uid + i; - - // const hasServiceFunctionVNFDs = context.containers.filter(d => DescriptorModelFactory.isConstituentVnfdWithServiceChain(d, 'SF')).length > 0; - - // return ( - //
- //
- //
- //
- // }> - // {fg.title} - // - //
- //

Rendered Service Paths

- // {hasServiceFunctionVNFDs ? fg.recordServicePaths.concat(srpFactory).map(mapRecordServicePath.bind(null, context)) : A VNFD with the chain SF is required to build Rendered Service Paths.} - //
- //
- //

Classifiers

- // {fg.classifier.map(mapClassifier.bind(null, context))} - //
- //
- //
- //
- //
- //
- // ); - */ } @@ -211,22 +130,26 @@ const ConfigPrimitiveParameters = React.createClass({ } return (
- { - containers.map(function(c, i) { - if(c.className == 'ConfigParameterMap') { - return - } - }) - } +
+
+
+ Request +
+
+ Source +
+
+ { + containers.map(function(c, i) { + if(c.className == 'ConfigParameterMap') { + return + } + }) + } +
We need this so when the user closes the panel it won't shift away and scare the bj out of them!
+
) - // return ( - //
- //
- // {containers.filter(d => d.type === 'nsd').map(mapNSD.bind(context))} - //
- // ); - } });