aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/store/rootReducer.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/store/rootReducer.js')
-rw-r--r--server/sonar-web/src/main/js/store/rootReducer.js9
1 files changed, 9 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 9edca6126da..9897df6974a 100644
--- a/server/sonar-web/src/main/js/store/rootReducer.js
+++ b/server/sonar-web/src/main/js/store/rootReducer.js
@@ -19,6 +19,7 @@
*/
import { combineReducers } from 'redux';
import appState from './appState/duck';
+import marketplace, * as fromMarketplace from './marketplace/reducer';
import users, * as fromUsers from './users/reducer';
import favorites, * as fromFavorites from './favorites/duck';
import languages, * as fromLanguages from './languages/reducer';
@@ -37,6 +38,7 @@ export default combineReducers({
globalMessages,
favorites,
languages,
+ marketplace,
metrics,
notifications,
organizations,
@@ -73,6 +75,13 @@ export const getUsers = state => fromUsers.getUsers(state.users);
export const isFavorite = (state, componentKey) =>
fromFavorites.isFavorite(state.favorites, componentKey);
+export const getMarketplaceState = state => state.marketplace;
+
+export const getMarketplaceEditions = state => fromMarketplace.getEditions(state.marketplace);
+
+export const getMarketplaceEditionStatus = state =>
+ fromMarketplace.getEditionStatus(state.marketplace);
+
export const getMetrics = state => fromMetrics.getMetrics(state.metrics);
export const getMetricByKey = (state, key) => fromMetrics.getMetricByKey(state.metrics, key);