From 55c256b321652c5d94658a62f3ec3744cae18ff4 Mon Sep 17 00:00:00 2001 From: sebdet Date: Wed, 11 Aug 2021 11:20:05 +0200 Subject: 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 --- .../softwareProduct/details/SoftwareProductDetailsView.jsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'openecomp-ui') 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({ -- cgit 1.2.3-korg