Global loader

This commit is contained in:
James Barnsley
2017-03-27 14:23:38 +13:00
parent b7f3eb4c14
commit 76f262fd33
11 changed files with 181 additions and 51 deletions

View File

@ -244,4 +244,21 @@ export function removeNotification( id ){
}
/**
* Loaders
**/
export function startLoading(key,source){
return {
type: 'START_LOADING',
source: source,
key: key
}
}
export function stopLoading(key){
return {
type: 'STOP_LOADING',
key: key
}
}