X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/949cc1476c08322eb97a0ff809bcff036cee9a79..5df95741b820e18db893c8ce1fac67b921b7fafc:/src/store/store.ts diff --git a/src/store/store.ts b/src/store/store.ts index 9d7dcdd457..8a2ca2400c 100644 --- a/src/store/store.ts +++ b/src/store/store.ts @@ -62,6 +62,10 @@ import { ApiClientAuthorizationMiddlewareService } from '~/store/api-client-auth import { PublicFavoritesMiddlewareService } from '~/store/public-favorites-panel/public-favorites-middleware-service'; import { PUBLIC_FAVORITE_PANEL_ID } from '~/store/public-favorites-panel/public-favorites-action'; import { publicFavoritesReducer } from '~/store/public-favorites/public-favorites-reducer'; +import { linkAccountPanelReducer } from './link-account-panel/link-account-panel-reducer'; +import { CollectionsWithSameContentAddressMiddlewareService } from '~/store/collections-content-address-panel/collections-content-address-middleware-service'; +import { COLLECTIONS_CONTENT_ADDRESS_PANEL_ID } from '~/store/collections-content-address-panel/collections-content-address-panel-actions'; +import { ownerNameReducer } from '~/store/owner-name/owner-name-reducer'; const composeEnhancers = (process.env.NODE_ENV === 'development' && @@ -115,6 +119,10 @@ export function configureStore(history: History, services: ServiceRepository): R const publicFavoritesMiddleware = dataExplorerMiddleware( new PublicFavoritesMiddlewareService(services, PUBLIC_FAVORITE_PANEL_ID) ); + const collectionsContentAddress = dataExplorerMiddleware( + new CollectionsWithSameContentAddressMiddlewareService(services, COLLECTIONS_CONTENT_ADDRESS_PANEL_ID) + ); + const middlewares: Middleware[] = [ routerMiddleware(history), thunkMiddleware.withExtraArgument(services), @@ -130,7 +138,8 @@ export function configureStore(history: History, services: ServiceRepository): R linkPanelMiddleware, computeNodeMiddleware, apiClientAuthorizationMiddlewareService, - publicFavoritesMiddleware + publicFavoritesMiddleware, + collectionsContentAddress ]; const enhancer = composeEnhancers(applyMiddleware(...middlewares)); return createStore(rootReducer, enhancer); @@ -146,6 +155,7 @@ const createRootReducer = (services: ServiceRepository) => combineReducers({ detailsPanel: detailsPanelReducer, dialog: dialogReducer, favorites: favoritesReducer, + ownerName: ownerNameReducer, publicFavorites: publicFavoritesReducer, form: formReducer, processLogsPanel: processLogsPanelReducer, @@ -163,5 +173,6 @@ const createRootReducer = (services: ServiceRepository) => combineReducers({ searchBar: searchBarReducer, virtualMachines: virtualMachinesReducer, repositories: repositoriesReducer, - keepServices: keepServicesReducer + keepServices: keepServicesReducer, + linkAccountPanel: linkAccountPanelReducer });