4 } from 'app/networking/NetworkConstants.js';
7 configurableViewsActionTypes
8 } from './ConfigurableViewConstants.js';
10 function createConfigReceivedEvent(config) {
12 type: configurableViewsActionTypes.CONFIGURABLE_VIEWS_CONFIG_RECEIVED,
17 export function newCustomComponentsEvent(components) {
19 type: configurableViewsActionTypes.CUSTOM_COMPONENTS_RECEIVED,
24 export function setCustomRoutes(routes) {
26 type: configurableViewsActionTypes.CUSTOM_ROUTES,
31 export function getConfigurableViewConfigs() {
33 return fetch(GET_LAYOUTS_URL, {
37 (response) => response.json()
40 dispatch(createConfigReceivedEvent(responseJson));
44 console.log(`problems fetching configurable view configs: ${err}`);