diff options
author | svishnev <shlomo-stanisla.vishnevetskiy@amdocs.com> | 2018-04-22 14:14:31 +0300 |
---|---|---|
committer | Einav Keidar <einavw@amdocs.com> | 2018-04-22 12:19:13 +0000 |
commit | 57c5c4ab80cde4290cac97a6eba3dc7de280538a (patch) | |
tree | 450d14403035554ca79f0de55c40c81b71e7740e /openecomp-ui/src/sdc-app/onboarding/licenseModel | |
parent | eb4b9fb0f4d3b62f3b9e2da81ebe581e7d0fc6eb (diff) |
attachment page navigation fix
Issue-ID: SDC-1239
Change-Id: Ib597238233e9a035944b7a56a56601cdfd624ca2
Signed-off-by: svishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>
Diffstat (limited to 'openecomp-ui/src/sdc-app/onboarding/licenseModel')
-rw-r--r-- | openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementActionHelper.js | 45 |
1 files changed, 18 insertions, 27 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 e07777f69e..5d425a8aa4 100644 --- a/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementActionHelper.js +++ b/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementActionHelper.js @@ -124,46 +124,37 @@ export default { }); }, - saveLicenseAgreement( + async saveLicenseAgreement( dispatch, { licenseModelId, previousLicenseAgreement, licenseAgreement, version } ) { if (previousLicenseAgreement) { - return putLicenseAgreement( + await putLicenseAgreement( licenseModelId, previousLicenseAgreement, licenseAgreement, version - ).then(() => { - this.fetchLicenseAgreementList(dispatch, { - licenseModelId, - version - }); - return ItemsHelper.checkItemStatus(dispatch, { - itemId: licenseModelId, - versionId: version.id - }); - }); + ); } else { - return postLicenseAgreement( + await postLicenseAgreement( licenseModelId, licenseAgreement, version - ).then(() => { - this.fetchLicenseAgreementList(dispatch, { - licenseModelId, - version - }); - FeatureGroupsActionHelper.fetchFeatureGroupsList(dispatch, { - licenseModelId, - version - }); - return ItemsHelper.checkItemStatus(dispatch, { - itemId: licenseModelId, - versionId: version.id - }); - }); + ); } + await this.fetchLicenseAgreementList(dispatch, { + licenseModelId, + version + }); + await FeatureGroupsActionHelper.fetchFeatureGroupsList(dispatch, { + licenseModelId, + version + }); + + return ItemsHelper.checkItemStatus(dispatch, { + itemId: licenseModelId, + versionId: version.id + }); }, deleteLicenseAgreement( |