From: Grégoire Aubert Date: Wed, 18 Oct 2017 10:23:17 +0000 (+0200) Subject: LICENSE-72 Update set license component to work without an edition X-Git-Tag: 6.7-RC1~92 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=acfe2c272eb11a08eac296ba50fd57c632d6cec3;p=sonarqube.git LICENSE-72 Update set license component to work without an edition --- diff --git a/server/sonar-web/src/main/js/apps/marketplace/EditionBoxes.tsx b/server/sonar-web/src/main/js/apps/marketplace/EditionBoxes.tsx index e1f5f373f1f..88fc6f4cebc 100644 --- a/server/sonar-web/src/main/js/apps/marketplace/EditionBoxes.tsx +++ b/server/sonar-web/src/main/js/apps/marketplace/EditionBoxes.tsx @@ -108,9 +108,11 @@ export default class EditionBoxes extends React.PureComponent { )) )} - {installEdition && ( + {editions && + installEdition && ( diff --git a/server/sonar-web/src/main/js/apps/marketplace/components/LicenseEditionForm.tsx b/server/sonar-web/src/main/js/apps/marketplace/components/LicenseEditionForm.tsx index fb513eba0bc..857a40e4058 100644 --- a/server/sonar-web/src/main/js/apps/marketplace/components/LicenseEditionForm.tsx +++ b/server/sonar-web/src/main/js/apps/marketplace/components/LicenseEditionForm.tsx @@ -25,6 +25,7 @@ import { translate, translateWithParameters } from '../../../helpers/l10n'; export interface Props { edition: Edition; + editions: Edition[]; onClose: () => void; updateEditionStatus: (editionStatus: EditionStatus) => void; } @@ -79,7 +80,7 @@ export default class LicenseEditionForm extends React.PureComponent