aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/marketplace/EditionBoxes.tsx
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2018-06-06 10:39:17 +0200
committerSonarTech <sonartech@sonarsource.com>2018-06-12 20:21:03 +0200
commit28766a60ff43a9a742f59de7f9c15c05717cb709 (patch)
treefa5cddea0a756a4d0bf8441510e58ee1e32a4fc4 /server/sonar-web/src/main/js/apps/marketplace/EditionBoxes.tsx
parenta387b409e3904805b954c70fdc0f791000e81c55 (diff)
downloadsonarqube-28766a60ff43a9a742f59de7f9c15c05717cb709.tar.gz
sonarqube-28766a60ff43a9a742f59de7f9c15c05717cb709.zip
SONAR-10817 replace api/editions/form_data by api/navigation/marketplace
The private WS becomes public because it is used by the marketplace page of community edition.
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.tsx8
1 files changed, 4 insertions, 4 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 a9ee399fffc..6f1064db849 100644
--- a/server/sonar-web/src/main/js/apps/marketplace/EditionBoxes.tsx
+++ b/server/sonar-web/src/main/js/apps/marketplace/EditionBoxes.tsx
@@ -21,7 +21,7 @@
import * as React from 'react';
import EditionBox from './components/EditionBox';
import { EDITIONS, EditionKey } from './utils';
-import { getFormData } from '../../api/marketplace';
+import { getMarketplaceNavigation } from '../../api/nav';
export interface Props {
currentEdition?: EditionKey;
@@ -38,15 +38,15 @@ export default class EditionBoxes extends React.PureComponent<Props, State> {
componentDidMount() {
this.mounted = true;
- this.fetchFormData();
+ this.fetchData();
}
componentWillUnmount() {
this.mounted = false;
}
- fetchFormData = () => {
- getFormData().then(
+ fetchData = () => {
+ getMarketplaceNavigation().then(
formData => {
if (this.mounted) {
this.setState({ ...formData });