summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/src
diff options
context:
space:
mode:
Diffstat (limited to 'openecomp-ui/src')
-rw-r--r--openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments/validation/HeatValidationReducer.js23
1 files changed, 21 insertions, 2 deletions
diff --git a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments/validation/HeatValidationReducer.js b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments/validation/HeatValidationReducer.js
index 67e36ca040..19684512a1 100644
--- a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments/validation/HeatValidationReducer.js
+++ b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/attachments/validation/HeatValidationReducer.js
@@ -16,10 +16,10 @@
import { actionTypes as softwareProductsActionTypes } from 'sdc-app/onboarding/softwareProduct/SoftwareProductConstants.js';
import { actionTypes, nodeFilters } from './HeatValidationConstants.js';
-const mapVolumeData = ({ fileName, env, errors }) => ({
+const mapNestedData = ({ fileName, env, errors }) => ({
name: fileName,
expanded: true,
- type: 'volume',
+ type: 'heat',
children: env && [
{
name: env.fileName,
@@ -30,6 +30,25 @@ const mapVolumeData = ({ fileName, env, errors }) => ({
errors
});
+const mapVolumeData = ({ fileName, env, errors, nested }) => ({
+ name: fileName,
+ expanded: true,
+ type: 'volume',
+ children: [
+ ...(env
+ ? [
+ {
+ name: env.fileName,
+ errors: env.errors,
+ type: 'env'
+ }
+ ]
+ : []),
+ ...(nested ? nested.map(mapNestedData) : [])
+ ],
+ errors
+});
+
const mapNetworkData = ({ fileName, env, errors }) => ({
name: fileName,
expanded: true,