From: kashalkar Date: Wed, 29 Mar 2017 19:14:23 +0000 (+0200) Subject: Merge "RIFT-15943 - Debug tab presented no content and download button broken - the... X-Git-Tag: v2.0.0~19 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=commitdiff_plain;h=ef3a1f2ff2307664018018f4049ecf1a195e3d32;hp=5f6d87f16bf80c3042a4bd5474bb0654b757d973 Merge "RIFT-15943 - Debug tab presented no content and download button broken - the link eventDispatch was not working — converted to link.click() - cleaned up download — removed prefix (no longer needed) — postponed building download content till button pressed - added isLoading support — retrieving crash log from server can take some time — display loading text on page when loading — use loading component - bit of code clean up — formatting — var -> let/const — comments" --- diff --git a/skyquake/plugins/accounts/src/account/account.jsx b/skyquake/plugins/accounts/src/account/account.jsx index e588e744a..b7dbf358c 100644 --- a/skyquake/plugins/accounts/src/account/account.jsx +++ b/skyquake/plugins/accounts/src/account/account.jsx @@ -169,7 +169,7 @@ class Account extends React.Component { } evaluateSubmit = (e) => { if (e.keyCode == 13) { - if (this.props.edit) { + if (this.props.params.name != 'create') { this.update(e); } else { this.create(e); diff --git a/skyquake/plugins/launchpad/api/launchpad.js b/skyquake/plugins/launchpad/api/launchpad.js index 6fb01704a..d74bb3e2e 100644 --- a/skyquake/plugins/launchpad/api/launchpad.js +++ b/skyquake/plugins/launchpad/api/launchpad.js @@ -790,8 +790,14 @@ NSR.addVnfrDataPromise = function(req, nsrs) { try { if (nsr["monitoring-param"]) { nsr["monitoring-param"].map(function(m) { - var vnfr = vnfrs[m["vnfr-id"]] || {}; + // var vnfr = vnfrs[m["vnfr-id"]] || {}; + // m["vnfr-name"] = vnfr['name'] ? vnfr['name'] : (vnfr['short-name'] ? vnfr['short-name'] : 'VNFR'); + var groupTag = m['group-tag']; + var vnfrId = m['vnfr-mon-param-ref'] && m['vnfr-mon-param-ref'][0] && m['vnfr-mon-param-ref'][0]['vnfr-id-ref']; + var vnfr = vnfrs[vnfrId] || {}; m["vnfr-name"] = vnfr['name'] ? vnfr['name'] : (vnfr['short-name'] ? vnfr['short-name'] : 'VNFR'); + m['group-tag'] = (groupTag ? (groupTag + ' - ') : '') + m['vnfr-name'] + (vnfrId ? ' (' + vnfrId.substring(1,8) + '...)' : ''); + }); } } catch (e) { diff --git a/skyquake/plugins/launchpad/src/launchpad_card/nsrConfigPrimitives.jsx b/skyquake/plugins/launchpad/src/launchpad_card/nsrConfigPrimitives.jsx index b44b3d94b..9d0cdbae7 100644 --- a/skyquake/plugins/launchpad/src/launchpad_card/nsrConfigPrimitives.jsx +++ b/skyquake/plugins/launchpad/src/launchpad_card/nsrConfigPrimitives.jsx @@ -43,7 +43,7 @@ class NsrConfigPrimitives extends React.Component { vnfrConfigPrimitive.name = vnfr['short-name']; vnfrConfigPrimitive['vnfr-id-ref'] = vnfr['id']; //input references - let configPrimitives = vnfr['vnf-configuration']['service-primitive']; + let configPrimitives = vnfr['vnf-configuration'] && vnfr['vnf-configuration']['service-primitive']; //input references by key let vnfrConfigPrimitives = {}