diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2018-06-06 10:39:17 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-06-12 20:21:03 +0200 |
commit | 28766a60ff43a9a742f59de7f9c15c05717cb709 (patch) | |
tree | fa5cddea0a756a4d0bf8441510e58ee1e32a4fc4 /server/sonar-web/src/main/js/apps/marketplace/EditionBoxes.tsx | |
parent | a387b409e3904805b954c70fdc0f791000e81c55 (diff) | |
download | sonarqube-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.tsx | 8 |
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 }); |