summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementActionHelper.js
diff options
context:
space:
mode:
authorilanap <ilanap@amdocs.com>2017-09-27 11:41:19 +0300
committerilanap <ilanap@amdocs.com>2017-09-27 11:41:19 +0300
commitcb1d48383b166c9b3fa8f9034b28fb3e662c1d80 (patch)
treeec863c9cd809adb2d7d1ba2529ac3572d4a8ad60 /openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementActionHelper.js
parent49d34b776677ca50c1d5b464d7b7b6dfe4c685c0 (diff)
Fix orphan list for VLMs
Fix the orphan list where feature groups stayed orphans after a license agreement that contains them was created. Issue-ID: SDC-407 Change-Id: I80b20e46fb4077ba0632e897437cfd795f134ad1 Signed-off-by: ilanap <ilanap@amdocs.com>
Diffstat (limited to 'openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementActionHelper.js')
-rw-r--r--openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementActionHelper.js16
1 files changed, 4 insertions, 12 deletions
diff --git a/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementActionHelper.js b/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementActionHelper.js
index efc4fb758f..e9d922c212 100644
--- a/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementActionHelper.js
+++ b/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementActionHelper.js
@@ -83,21 +83,13 @@ export default {
saveLicenseAgreement(dispatch, {licenseModelId, previousLicenseAgreement, licenseAgreement, version}) {
if (previousLicenseAgreement) {
return putLicenseAgreement(licenseModelId, previousLicenseAgreement, licenseAgreement, version).then(() => {
- dispatch({
- type: licenseAgreementActionTypes.EDIT_LICENSE_AGREEMENT,
- licenseAgreement
- });
+ this.fetchLicenseAgreementList(dispatch, {licenseModelId, version});
});
}
else {
- return postLicenseAgreement(licenseModelId, licenseAgreement, version).then(response => {
- dispatch({
- type: licenseAgreementActionTypes.ADD_LICENSE_AGREEMENT,
- licenseAgreement: {
- ...licenseAgreement,
- id: response.value
- }
- });
+ return postLicenseAgreement(licenseModelId, licenseAgreement, version).then(() => {
+ this.fetchLicenseAgreementList(dispatch, {licenseModelId, version});
+ FeatureGroupsActionHelper.fetchFeatureGroupsList(dispatch, {licenseModelId, version});
});
}
},