Fix license option visibility 08/119508/1 1.8.4
authorChrisC <christophe.closset@intl.att.com>
Thu, 18 Mar 2021 14:31:38 +0000 (15:31 +0100)
committerChrisC <christophe.closset@intl.att.com>
Thu, 18 Mar 2021 14:31:38 +0000 (15:31 +0100)
Fix for license option selection visibility in case user choose internal license type

Issue-ID: SDC-3499
Signed-off-by: ChrisC <christophe.closset@intl.att.com>
Change-Id: I32f6f81055f619b8682bc856ab16e8689546172b

openecomp-ui/src/sdc-app/onboarding/softwareProduct/details/SoftwareProductDetailsView.jsx

index 06ecf6b..7df610a 100644 (file)
@@ -237,7 +237,7 @@ class LicensesSection extends React.Component {
                         label={i18n('Licensing Version')}
                         disabled={
                             this.props.isVendorArchived ||
-                            this.props.licenseType !== 'internal'
+                            this.props.licenseType !== 'INTERNAL'
                         }
                         type="select">
                         {this.props.licensingVersionsList.map(version => (
@@ -254,7 +254,7 @@ class LicensesSection extends React.Component {
                         type="select"
                         disabled={
                             this.props.isVendorArchived ||
-                            this.props.licenseType !== 'internal'
+                            this.props.licenseType !== 'INTERNAL'
                         }
                         value={
                             this.props.licensingData.licenseAgreement
@@ -281,7 +281,7 @@ class LicensesSection extends React.Component {
                             onInputChange={() => {}}
                             disabled={
                                 this.props.isVendorArchived ||
-                                this.props.licenseType !== 'internal'
+                                this.props.licenseType !== 'INTERNAL'
                             }
                             onEnumChange={featureGroups =>
                                 this.props.onFeatureGroupsChanged({