aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js
diff options
context:
space:
mode:
authorJulien HENRY <henryju@yahoo.fr>2017-10-03 14:55:22 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2017-10-04 13:48:58 +0200
commitf6ff49007d98d12b4827f5d6ec07478780933137 (patch)
treef93d6a6dbc12c12cacca19c5dd03a34cfd21ee44 /server/sonar-web/src/main/js
parent489831d3073f67cb838fd607fa90a344125c33f2 (diff)
downloadsonarqube-f6ff49007d98d12b4827f5d6ec07478780933137.tar.gz
sonarqube-f6ff49007d98d12b4827f5d6ec07478780933137.zip
SONAR-9378 Rename "sonar.lf.sonarqube.com.enabled" setting
Diffstat (limited to 'server/sonar-web/src/main/js')
-rw-r--r--server/sonar-web/src/main/js/app/components/App.tsx2
-rw-r--r--server/sonar-web/src/main/js/app/components/DefaultHelmetContainer.js2
-rw-r--r--server/sonar-web/src/main/js/app/components/GlobalFooterContainer.js2
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/global/GlobalNav.js2
-rw-r--r--server/sonar-web/src/main/js/apps/about/components/AboutApp.js2
-rw-r--r--server/sonar-web/src/main/js/apps/tutorials/onboarding/OnboardingContainer.js2
6 files changed, 6 insertions, 6 deletions
diff --git a/server/sonar-web/src/main/js/app/components/App.tsx b/server/sonar-web/src/main/js/app/components/App.tsx
index 8ab6f6b8f40..e69c1116cda 100644
--- a/server/sonar-web/src/main/js/app/components/App.tsx
+++ b/server/sonar-web/src/main/js/app/components/App.tsx
@@ -74,7 +74,7 @@ class App extends React.PureComponent<Props, State> {
if (this.mounted) {
const onSonarCloud =
appState.settings != undefined &&
- appState.settings['sonar.lf.sonarqube.com.enabled'] === 'true';
+ appState.settings['sonar.sonarcloud.enabled'] === 'true';
this.setState({
branchesEnabled: appState.branchesEnabled,
canAdmin: appState.canAdmin,
diff --git a/server/sonar-web/src/main/js/app/components/DefaultHelmetContainer.js b/server/sonar-web/src/main/js/app/components/DefaultHelmetContainer.js
index 36d16d56568..8a3be89e41f 100644
--- a/server/sonar-web/src/main/js/app/components/DefaultHelmetContainer.js
+++ b/server/sonar-web/src/main/js/app/components/DefaultHelmetContainer.js
@@ -36,7 +36,7 @@ function DefaultHelmetContainer({ children, sonarqubeDotCom }) {
}
const mapStateToProps = state => ({
- sonarqubeDotCom: getGlobalSettingValue(state, 'sonar.lf.sonarqube.com.enabled')
+ sonarqubeDotCom: getGlobalSettingValue(state, 'sonar.sonarcloud.enabled')
});
export default connect(mapStateToProps)(DefaultHelmetContainer);
diff --git a/server/sonar-web/src/main/js/app/components/GlobalFooterContainer.js b/server/sonar-web/src/main/js/app/components/GlobalFooterContainer.js
index 02d44ad5ba4..4a2a7725cef 100644
--- a/server/sonar-web/src/main/js/app/components/GlobalFooterContainer.js
+++ b/server/sonar-web/src/main/js/app/components/GlobalFooterContainer.js
@@ -25,7 +25,7 @@ import GlobalFooter from './GlobalFooter';
const mapStateToProps = state => ({
sonarqubeVersion: getAppState(state).version,
productionDatabase: getAppState(state).productionDatabase,
- sonarqubeDotCom: getGlobalSettingValue(state, 'sonar.lf.sonarqube.com.enabled')
+ sonarqubeDotCom: getGlobalSettingValue(state, 'sonar.sonarcloud.enabled')
});
export default connect(mapStateToProps)(GlobalFooter);
diff --git a/server/sonar-web/src/main/js/app/components/nav/global/GlobalNav.js b/server/sonar-web/src/main/js/app/components/nav/global/GlobalNav.js
index fe155adbbe6..4611d30d5c8 100644
--- a/server/sonar-web/src/main/js/app/components/nav/global/GlobalNav.js
+++ b/server/sonar-web/src/main/js/app/components/nav/global/GlobalNav.js
@@ -144,7 +144,7 @@ class GlobalNav extends React.PureComponent {
}
const mapStateToProps = state => {
- const sonarCloudSetting = getGlobalSettingValue(state, 'sonar.lf.sonarqube.com.enabled');
+ const sonarCloudSetting = getGlobalSettingValue(state, 'sonar.sonarcloud.enabled');
return {
currentUser: getCurrentUser(state),
diff --git a/server/sonar-web/src/main/js/apps/about/components/AboutApp.js b/server/sonar-web/src/main/js/apps/about/components/AboutApp.js
index d736f754310..c748fa60444 100644
--- a/server/sonar-web/src/main/js/apps/about/components/AboutApp.js
+++ b/server/sonar-web/src/main/js/apps/about/components/AboutApp.js
@@ -203,7 +203,7 @@ const mapStateToProps = state => ({
appState: getAppState(state),
currentUser: getCurrentUser(state),
customText: getGlobalSettingValue(state, 'sonar.lf.aboutText'),
- sonarqubeDotCom: getGlobalSettingValue(state, 'sonar.lf.sonarqube.com.enabled')
+ sonarqubeDotCom: getGlobalSettingValue(state, 'sonar.sonarcloud.enabled')
});
const mapDispatchToProps = { fetchAboutPageSettings };
diff --git a/server/sonar-web/src/main/js/apps/tutorials/onboarding/OnboardingContainer.js b/server/sonar-web/src/main/js/apps/tutorials/onboarding/OnboardingContainer.js
index 246062de818..c1b395878e4 100644
--- a/server/sonar-web/src/main/js/apps/tutorials/onboarding/OnboardingContainer.js
+++ b/server/sonar-web/src/main/js/apps/tutorials/onboarding/OnboardingContainer.js
@@ -27,7 +27,7 @@ import {
} from '../../../store/rootReducer';
const mapStateToProps = state => {
- const sonarCloudSetting = getGlobalSettingValue(state, 'sonar.lf.sonarqube.com.enabled');
+ const sonarCloudSetting = getGlobalSettingValue(state, 'sonar.sonarcloud.enabled');
return {
currentUser: getCurrentUser(state),