diff options
author | ssjenka <ssjenka@ops-slave-centos7-1.internal.sonarsource.com> | 2017-03-02 08:01:50 +0100 |
---|---|---|
committer | ssjenka <ssjenka@ops-slave-centos7-1.internal.sonarsource.com> | 2017-03-02 08:01:50 +0100 |
commit | db48fea3db5f91d6819d0951193c57af81b5e7ae (patch) | |
tree | de2e01dd7be652a15927ad32cae001f9854aca51 /server/sonar-web/src/main | |
parent | a9c274308d4d8af97cd8d320fae8fc68e0a3e46f (diff) | |
parent | 72ac5447a32d6537e805374116cbf369f7a65038 (diff) | |
download | sonarqube-db48fea3db5f91d6819d0951193c57af81b5e7ae.tar.gz sonarqube-db48fea3db5f91d6819d0951193c57af81b5e7ae.zip |
Automatic merge from branch-6.3
* origin/branch-6.3:
SONAR-8835 support NULL in column file_sources.line_hashes
SONAR-8835 file move detection does not need to compute source hash
SONAR-8451 fix bad state on measures page
SONAR-8659 Bring back "Edit Permissions" to system administrators
Diffstat (limited to 'server/sonar-web/src/main')
-rw-r--r-- | server/sonar-web/src/main/js/apps/component-measures/app/App.js | 7 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/apps/component-measures/home/actions.js | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/component-measures/app/App.js b/server/sonar-web/src/main/js/apps/component-measures/app/App.js index f60a5aa0798..2381ba36011 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/app/App.js +++ b/server/sonar-web/src/main/js/apps/component-measures/app/App.js @@ -21,15 +21,16 @@ import React from 'react'; import Spinner from './../components/Spinner'; export default class App extends React.Component { + state = { componentSet: false }; + componentDidMount () { this.props.setComponent(this.props.component); this.props.fetchMetrics(); + this.setState({ componentSet: true }); } render () { - const { metrics } = this.props; - - if (metrics == null) { + if (this.props.metrics == null || !this.state.componentSet) { return <Spinner/>; } diff --git a/server/sonar-web/src/main/js/apps/component-measures/home/actions.js b/server/sonar-web/src/main/js/apps/component-measures/home/actions.js index b516d2e7bbb..a44cd01f8a9 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/home/actions.js +++ b/server/sonar-web/src/main/js/apps/component-measures/home/actions.js @@ -41,6 +41,8 @@ export function fetchMeasures () { dispatch(startFetching()); const state = getState(); + /* eslint-disable no-console */ + console.log(state); const component = getMeasuresAppComponent(state); const metrics = getMeasuresAppAllMetrics(state); |