summaryrefslogtreecommitdiff
path: root/app/client/dashboard/dashboard.actions.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-25 13:25:02 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-25 13:25:02 +0200
commit237a32c596f37a38c07902332adc1af4c0c43609 (patch)
tree58b3a91372be4c0fa0d13c8f7f242cd87285e091 /app/client/dashboard/dashboard.actions.js
parent9359758ce631528ae2b0deb82df05f908d5c42a2 (diff)
app bugz
Diffstat (limited to 'app/client/dashboard/dashboard.actions.js')
-rw-r--r--app/client/dashboard/dashboard.actions.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/app/client/dashboard/dashboard.actions.js b/app/client/dashboard/dashboard.actions.js
index 567f2cb..ae54f02 100644
--- a/app/client/dashboard/dashboard.actions.js
+++ b/app/client/dashboard/dashboard.actions.js
@@ -6,12 +6,13 @@ export const load = () => (dispatch) => {
util.allProgress([
actions.task.index({ limit: 40, orderBy: 'created_at desc', }),
actions.folder.index({ activity: 'dataset', }),
- actions.file.index({ module: 'samplernn', generated: 1, limit: 10, orderBy: 'created_at desc', })
+ actions.file.index({ module: 'samplernn', generated: 1, limit: 15, orderBy: 'created_at desc', }),
+ actions.file.index({ module: 'pix2pixhd', generated: 1, limit: 15, 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, sampleRNNrenders ] = res
+ const [ tasks, folders, samplernn, pix2pixhd ] = res
const { mapFn, sortFn } = util.sort.orderByFn('date desc')
const foldersByModule = folders.map(mapFn).sort(sortFn).reduce((a,b) => {
const module = b[1].module
@@ -24,10 +25,13 @@ export const load = () => (dispatch) => {
data: {
tasks,
folders,
- sampleRNNrenders,
+ renders: {
+ samplernn,
+ pix2pixhd,
+ },
foldersByModule,
},
})
})
-} \ No newline at end of file
+}