From 36fa9cdd9fb26aa3fbd3a1f35b2d8344d1301c11 Mon Sep 17 00:00:00 2001 From: "andre.schmid" Date: Thu, 22 Jul 2021 11:54:07 +0100 Subject: Specify a model while creating a VSP MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I6ed0a3c979e14c62ecd6488dfd70589df40636e9 Issue-ID: SDC-3656 Signed-off-by: André Schmid --- .../sdc-app/onboarding/softwareProduct/SoftwareProductReducer.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'openecomp-ui/src/sdc-app/onboarding/softwareProduct/SoftwareProductReducer.js') diff --git a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/SoftwareProductReducer.js b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/SoftwareProductReducer.js index dcec5c683f..06e974c78f 100644 --- a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/SoftwareProductReducer.js +++ b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/SoftwareProductReducer.js @@ -1,5 +1,6 @@ /*! * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * Modifications Copyright (C) 2021 Nordix Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -160,6 +161,12 @@ export default combineReducers({ } return state; }, + modelList: (state = [], action) => { + if (action.type === actionTypes.SOFTWARE_PRODUCT_MODELS_LOADED) { + return action.modelList; + } + return state; + }, softwareProductQuestionnaire: createJSONSchemaReducer( PRODUCT_QUESTIONNAIRE ), -- cgit 1.2.3-korg