diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-12-29 12:02:55 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-12-29 17:26:40 +0100 |
commit | 2f078147320a3e05ff533b2ad533aac1faa18d11 (patch) | |
tree | 1ffd58bf3fd4c0ca393d2b1edd97ed69438ceb15 /server/sonar-web/src/main/js/store/rootReducer.js | |
parent | f5ab57af4cfefd4a01f5839a23a652347e334e76 (diff) | |
download | sonarqube-2f078147320a3e05ff533b2ad533aac1faa18d11.tar.gz sonarqube-2f078147320a3e05ff533b2ad533aac1faa18d11.zip |
SONAR-8563 Rewrite notifications page
Diffstat (limited to 'server/sonar-web/src/main/js/store/rootReducer.js')
-rw-r--r-- | server/sonar-web/src/main/js/store/rootReducer.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/store/rootReducer.js b/server/sonar-web/src/main/js/store/rootReducer.js index 0077b62ce5e..05174e1f9be 100644 --- a/server/sonar-web/src/main/js/store/rootReducer.js +++ b/server/sonar-web/src/main/js/store/rootReducer.js @@ -24,6 +24,7 @@ import users, * as fromUsers from './users/reducer'; import favorites, * as fromFavorites from './favorites/duck'; import languages, * as fromLanguages from './languages/reducer'; import measures, * as fromMeasures from './measures/reducer'; +import notifications, * as fromNotifications from './notifications/duck'; import globalMessages, * as fromGlobalMessages from './globalMessages/duck'; import projectActivity from './projectActivity/duck'; import measuresApp, * as fromMeasuresApp from '../apps/component-measures/store/rootReducer'; @@ -40,6 +41,7 @@ export default combineReducers({ favorites, languages, measures, + notifications, projectActivity, users, @@ -84,6 +86,30 @@ export const getComponentMeasures = (state, componentKey) => ( fromMeasures.getComponentMeasures(state.measures, componentKey) ); +export const getGlobalNotifications = state => ( + fromNotifications.getGlobal(state.notifications) +); + +export const getProjectsWithNotifications = state => ( + fromNotifications.getProjects(state.notifications) +); + +export const getProjectNotifications = (state, project) => ( + fromNotifications.getForProject(state.notifications, project) +); + +export const getNotificationChannels = state => ( + fromNotifications.getChannels(state.notifications) +); + +export const getNotificationGlobalTypes = state => ( + fromNotifications.getGlobalTypes(state.notifications) +); + +export const getNotificationPerProjectTypes = state => ( + fromNotifications.getPerProjectTypes(state.notifications) +); + export const getProjectActivity = state => ( state.projectActivity ); |