X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Flaunchpad%2Fsrc%2Finstantiate%2FinstantiateInputParams.jsx;h=ec40ccfc1f5e43b251a3f3ba7e2d6cf2f96d71a4;hb=eb51acf7319a6207f7861a2ddc6c433662082ff4;hp=17d5f8ddcc38cb21e278c367869760e328e22d4a;hpb=3d4b8eb085d2edb48661d7c232a31c02ddeef5e6;p=osm%2FUI.git diff --git a/skyquake/plugins/launchpad/src/instantiate/instantiateInputParams.jsx b/skyquake/plugins/launchpad/src/instantiate/instantiateInputParams.jsx index 17d5f8ddc..ec40ccfc1 100644 --- a/skyquake/plugins/launchpad/src/instantiate/instantiateInputParams.jsx +++ b/skyquake/plugins/launchpad/src/instantiate/instantiateInputParams.jsx @@ -1,6 +1,6 @@ /* - * + * * Copyright 2016 RIFT.IO Inc * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -33,11 +33,20 @@ export default class InstantiateInputParams extends Component {
- { - isOpenMano(props.selectedCloudAccount) ? this.dataCentersHTML(props.dataCenters[selectedCloudAccount.name], props.nsFn.updateSelectedDataCenter) : null + !isOpenMano(props.ro) ? + ( + + ) + : null + } + { + isOpenMano(props.ro) ? + dataCentersHTML(props.dataCenters[props.ro.name], + props.nsFn.updateSelectedDataCenter) + : null }
@@ -60,11 +69,21 @@ export default class InstantiateInputParams extends Component { return (

VNFD: {v.name}

- + { + !isOpenMano(props.ro) ? + ( + + ) + : null + } { - isOpenMano(defaultValue) ? dataCentersHTML(dataCenters[defaultValue.account.name], props.vnfFn.updateSelectedDataCenter(v['member-vnf-index'])) : null + isOpenMano(props.ro) ? + dataCentersHTML( + props.dataCenters[props.ro.name], + props.vnfFn.updateSelectedDataCenter.bind(null, v['member-vnf-index'])) + : null } { (props.configAgentAccounts && props.configAgentAccounts.length > 0) ? @@ -401,8 +420,9 @@ export default class InstantiateInputParams extends Component { { sshKeysRef.map(function(ref, i) { + let keyref = JSON.stringify(ref) return ( -
+