summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement
diff options
context:
space:
mode:
authorsvishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>2018-10-14 14:10:54 +0300
committerEinav Keidar <einavw@amdocs.com>2018-10-14 14:25:49 +0000
commite7fffedb147defbc3c70329e994ca37519db2b3b (patch)
tree80e741ba76c41411e1e0243611fef65e4cc13efa /openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement
parent270dcfc31c637224544b3e20e91a0a3354239a2e (diff)
EP & LKG sorting fix
Issue-ID: SDC-1833 Change-Id: Iffca952f923188983e79ecf45d3d9acab079ecf7 Signed-off-by: svishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>
Diffstat (limited to 'openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement')
-rw-r--r--openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementEditor.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementEditor.js b/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementEditor.js
index 735531a175..c9d3e4c136 100644
--- a/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementEditor.js
+++ b/openecomp-ui/src/sdc-app/onboarding/licenseModel/licenseAgreement/LicenseAgreementEditor.js
@@ -1,5 +1,5 @@
/*!
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * Copyright © 2016-2018 European Support Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -14,10 +14,11 @@
* permissions and limitations under the License.
*/
import { connect } from 'react-redux';
+import sortByStringProperty from 'nfvo-utils/sortByStringProperty.js';
import LicenseAgreementActionHelper from './LicenseAgreementActionHelper.js';
import LicenseAgreementEditorView from './LicenseAgreementEditorView.jsx';
import ValidationHelper from 'sdc-app/common/helpers/ValidationHelper.js';
-
+import { SORTING_PROPERTY_NAME } from 'sdc-app/onboarding/licenseModel/LicenseModelConstants.js';
export const mapStateToProps = ({
licenseModel: { licenseAgreement, featureGroup }
}) => {
@@ -60,7 +61,10 @@ export const mapStateToProps = ({
data,
previousData,
selectedTab,
- featureGroupsList,
+ featureGroupsList: sortByStringProperty(
+ featureGroupsList,
+ SORTING_PROPERTY_NAME
+ ),
LANames,
genericFieldInfo,
isFormValid,