summaryrefslogtreecommitdiff
path: root/app/client/dashboard/dashboard.actions.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-16 15:16:13 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-16 15:16:13 +0200
commitf6c930431fff255935c8fd5dc22a95ef5db9fc34 (patch)
tree3ef8b0d53de9921e8b0a4c4470501270b7eb5e4f /app/client/dashboard/dashboard.actions.js
parent3504248ae4db51380413c45699e4453efb314561 (diff)
dashboard stuff
Diffstat (limited to 'app/client/dashboard/dashboard.actions.js')
-rw-r--r--app/client/dashboard/dashboard.actions.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/client/dashboard/dashboard.actions.js b/app/client/dashboard/dashboard.actions.js
index 319c164..7a6aa1d 100644
--- a/app/client/dashboard/dashboard.actions.js
+++ b/app/client/dashboard/dashboard.actions.js
@@ -4,13 +4,14 @@ import util from '../util'
export const load = () => (dispatch) => {
util.allProgress([
- actions.task.index(),
+ actions.task.index({ limit: 40, orderBy: 'created_at desc', }),
actions.folder.index(),
+ actions.file.index({ module: 'samplernn', generated: 1, limit: 10, orderBy: 'created_at desc', })
], (percent, i, n) => {
console.log('dashboard load progress', i, n)
dispatch({ type: types.app.load_progress, progress: { i, n }})
}).then(res => {
- const [ tasks, folders ] = res
+ const [ tasks, folders, sampleRNNrenders ] = res
const { mapFn, sortFn } = util.sort.orderByFn('date desc')
const foldersByModule = folders.map(mapFn).sort(sortFn).reduce((a,b) => {
const module = b[1].module
@@ -23,6 +24,7 @@ export const load = () => (dispatch) => {
data: {
tasks,
folders,
+ sampleRNNrenders,
foldersByModule,
},
})