From: sebdet Date: Wed, 11 Aug 2021 09:20:05 +0000 (+0200) Subject: Fix license fields disabled X-Git-Tag: 1.9.1~50 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F37%2F123237%2F3;p=sdc.git Fix license fields disabled The license fields are disabled in the VSP settings when the external license feature is disabled and when the user click on the general tab just after the ZIP validation to define the license fields. Issue-ID: SDC-3663 Signed-off-by: sebdet Change-Id: I73528bc44552ee0bc1f373cacf5318691ffc2712 --- diff --git a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/details/SoftwareProductDetailsView.jsx b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/details/SoftwareProductDetailsView.jsx index d24916f663..185617e156 100644 --- a/openecomp-ui/src/sdc-app/onboarding/softwareProduct/details/SoftwareProductDetailsView.jsx +++ b/openecomp-ui/src/sdc-app/onboarding/softwareProduct/details/SoftwareProductDetailsView.jsx @@ -255,7 +255,8 @@ class LicensesSection extends React.Component { label={i18n('Licensing Version')} disabled={ this.props.isVendorArchived || - this.props.licenseType !== 'INTERNAL' + (typeof this.props.licenseType !== 'undefined' && + this.props.licenseType !== 'INTERNAL') } type="select"> {this.props.licensingVersionsList.map(version => ( @@ -272,7 +273,8 @@ class LicensesSection extends React.Component { type="select" disabled={ this.props.isVendorArchived || - this.props.licenseType !== 'INTERNAL' + (typeof this.props.licenseType !== 'undefined' && + this.props.licenseType !== 'INTERNAL') } value={ this.props.licensingData.licenseAgreement @@ -299,7 +301,9 @@ class LicensesSection extends React.Component { onInputChange={() => {}} disabled={ this.props.isVendorArchived || - this.props.licenseType !== 'INTERNAL' + (typeof this.props.licenseType !== + 'undefined' && + this.props.licenseType !== 'INTERNAL') } onEnumChange={featureGroups => this.props.onFeatureGroupsChanged({