diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-06-16 09:51:08 +0200 |
---|---|---|
committer | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-07-04 14:15:34 +0200 |
commit | bd8acc0bfb05d9c2bc488b61f5493d3f8bc676be (patch) | |
tree | 7b334de3c2b8c6cca9b50a795e2243cf627a415c /server/sonar-web/src/main/js/store | |
parent | 5b03b1c707168fcd83a3eee3bae40ad0d2c7022f (diff) | |
download | sonarqube-bd8acc0bfb05d9c2bc488b61f5493d3f8bc676be.tar.gz sonarqube-bd8acc0bfb05d9c2bc488b61f5493d3f8bc676be.zip |
SONAR-9401 Add leak period on the project activity page graphs
Diffstat (limited to 'server/sonar-web/src/main/js/store')
-rw-r--r-- | server/sonar-web/src/main/js/store/rootActions.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/store/rootActions.js b/server/sonar-web/src/main/js/store/rootActions.js index ec276c40f29..a3d3902cf1e 100644 --- a/server/sonar-web/src/main/js/store/rootActions.js +++ b/server/sonar-web/src/main/js/store/rootActions.js @@ -19,7 +19,7 @@ */ import { getLanguages } from '../api/languages'; import { getGlobalNavigation, getComponentNavigation } from '../api/nav'; -import { getComponentTags } from '../api/components'; +import { getComponentData } from '../api/components'; import * as auth from '../api/auth'; import { getOrganizations } from '../api/organizations'; import { receiveLanguages } from './languages/actions'; @@ -51,8 +51,11 @@ const addQualifier = project => ({ }); export const fetchProject = key => dispatch => - Promise.all([getComponentNavigation(key), getComponentTags(key)]).then(([component, tags]) => { - component.tags = tags; + Promise.all([ + getComponentNavigation(key), + getComponentData(key) + ]).then(([componentNav, componentData]) => { + const component = { ...componentData, ...componentNav }; dispatch(receiveComponents([addQualifier(component)])); if (component.organization != null) { dispatch(fetchOrganizations([component.organization])); |