aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-ui/src
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2021-08-11 11:20:05 +0200
committerMichael Morris <michael.morris@est.tech>2021-08-12 09:07:57 +0000
commit55c256b321652c5d94658a62f3ec3744cae18ff4 (patch)
tree30646cbc1e4badb5ed191d0e96a4ef0c71c58849 /openecomp-ui/src
parent36fa9cdd9fb26aa3fbd3a1f35b2d8344d1301c11 (diff)
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 <sebastien.determe@intl.att.com> Change-Id: I73528bc44552ee0bc1f373cacf5318691ffc2712
Diffstat (limited to 'openecomp-ui/src')
-rw-r--r--openecomp-ui/src/sdc-app/onboarding/softwareProduct/details/SoftwareProductDetailsView.jsx10
1 files changed, 7 insertions, 3 deletions
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({