From 1bff71da2f12880a8d6d9c36441725f781275392 Mon Sep 17 00:00:00 2001 From: Luji7 Date: Tue, 1 Nov 2016 17:17:14 +0800 Subject: Issue-Id: GSO-80 display name instead of description Change-Id: Id02a0486a8a69f88926aecf93951c0cdf9263123 Signed-off-by: Luji7 (cherry picked from commit 29d80483ad92fe51730d90c6598481ebd1086216) --- .../src/main/webapp/lifecyclemgr/js/gsolcm.js | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js index b2a6605e..022069ce 100644 --- a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js +++ b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js @@ -195,6 +195,7 @@ function fetchGsoNestingTemplateParameters(templateId) { return; } var inputs = serviceTemplate.inputs.map(function(input) { + input.showName = input.name; input.name = nodeTemplate.type + '.' + input.name; return input; }); @@ -207,13 +208,15 @@ function fetchGsoNestingTemplateParameters(templateId) { name: nodeTemplate.type + '.location', type: 'location', description: nodeTemplate.name + ' Location', - required: 'true' + required: 'true', + showName: nodeTemplate.name + ' Location' }); inputs.push({ name: nodeTemplate.type + '.sdncontroller', type: 'sdncontroller', description: nodeTemplate.name + ' SDN Controller', - required: 'true' + required: 'true', + showName: nodeTemplate.name + ' SDN Controller' }); } nodeAggregatation.notify(inputs); @@ -297,13 +300,15 @@ function fetchNfvoTemplateInputParameters(templateId) { name: 'location', type: 'location', description: 'Location', - required: 'true' + required: 'true', + showName: 'Location' }); inputParas.push({ name: 'sdncontroller', type: 'sdncontroller', description: 'SDN Controller', - required: 'true' + required: 'true', + showName: 'SDN Controller' }); templateParameters = translateToTemplateParameters(inputParas, vims, sdnControllers); defer.resolve(templateParameters); @@ -387,7 +392,7 @@ function transformToComponents(templateParas) { function generateComboxComponent(inputPara, items) { var component = '
' + '' + '
' + @@ -411,11 +416,11 @@ function transformToOptions(items) { function generateComponent(inputPara) { var component = '
' + '' + '
' + '' + + inputPara.showName + '" value="' + inputPara.value + '" />' + '
'; return component; } -- cgit 1.2.3-korg