Loading library albums only on demand

This commit is contained in:
James Barnsley
2017-08-11 21:59:14 +12:00
parent 190a20c882
commit 9bb4b79f1e
12 changed files with 58 additions and 61 deletions

View File

@ -168,23 +168,25 @@ export function stopLoading(key){
}
}
export function startProcess(key,content){
export function startProcess(key,message,data = {}){
return {
type: 'START_PROCESS',
key: key,
content: content
message: message,
data: data
}
}
export function updateProcess(key,content){
export function updateProcess(key,message,data = {}){
return {
type: 'UPDATE_PROCESS',
key: key,
content: content
message: message,
data: data
}
}
export function runProcess(key){
export function runProcess(key,data = {}){
return {
type: key
}