fetch indexResources at beginning

This commit is contained in:
Maren Süwer
2018-10-05 13:14:33 +02:00
parent 3fd88f6166
commit a5f4d9713e
3 changed files with 31 additions and 6 deletions

View File

@@ -8,7 +8,7 @@ import { getFailure } from "./failure";
// Action
export const FETCH_INDEXRESOURCES = "scm/indexResource";
export const FETCH_INDEXRESOURCES = "scm/INDEXRESOURCES";
export const FETCH_INDEXRESOURCES_PENDING = `${FETCH_INDEXRESOURCES}_${
types.PENDING_SUFFIX
}`;
@@ -86,6 +86,10 @@ export function getFetchIndexResourcesFailure(state: Object) {
return getFailure(state, FETCH_INDEXRESOURCES);
}
export function getLinks(state: Object){
return state.indexResources.links;
}
export function getUiPluginsLink(state: Object) {
return state.indexResources.links["uiPlugins"].href;
}