aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/marketplace/EditionBoxes.tsx
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2018-06-01 11:04:05 +0200
committerSonarTech <sonartech@sonarsource.com>2018-06-12 20:21:00 +0200
commit7ab10a96ddaaff5b21e139fbac1fb54afd5bdf85 (patch)
tree5deef6c6099a6c23fd7e8f0193bb9b3cc60ae7f9 /server/sonar-web/src/main/js/apps/marketplace/EditionBoxes.tsx
parentc75946789badf57684c87b1547366e71e39c03e1 (diff)
downloadsonarqube-7ab10a96ddaaff5b21e139fbac1fb54afd5bdf85.tar.gz
sonarqube-7ab10a96ddaaff5b21e139fbac1fb54afd5bdf85.zip
SONAR-10696 Display wrong edition error on license page
* Handle optional "edition" field in api/navigation/global correctly * Introduce enum of edition keys
Diffstat (limited to 'server/sonar-web/src/main/js/apps/marketplace/EditionBoxes.tsx')
-rw-r--r--server/sonar-web/src/main/js/apps/marketplace/EditionBoxes.tsx4
1 files changed, 2 insertions, 2 deletions
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 f79b349ec69..a9ee399fffc 100644
--- a/server/sonar-web/src/main/js/apps/marketplace/EditionBoxes.tsx
+++ b/server/sonar-web/src/main/js/apps/marketplace/EditionBoxes.tsx
@@ -20,11 +20,11 @@
import * as React from 'react';
import EditionBox from './components/EditionBox';
-import { EDITIONS } from './utils';
+import { EDITIONS, EditionKey } from './utils';
import { getFormData } from '../../api/marketplace';
export interface Props {
- currentEdition: string;
+ currentEdition?: EditionKey;
}
interface State {