mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 22:45:45 +01:00
fetch indexResources at beginning
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user