summaryrefslogtreecommitdiff
path: root/app/client/system
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-16 16:02:33 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-16 16:02:33 +0200
commit7917bca6c4da52f65de7f5ff139d66db2ac9ec51 (patch)
treee6790843122e733aba70ccce356e066a0d25f397 /app/client/system
parent3fbc955e814eb26e55fb083e688b49545b125f5e (diff)
navigationnnn
Diffstat (limited to 'app/client/system')
-rw-r--r--app/client/system/system.actions.js5
-rw-r--r--app/client/system/system.reducer.js2
2 files changed, 4 insertions, 3 deletions
diff --git a/app/client/system/system.actions.js b/app/client/system/system.actions.js
index 7831704..a34bd58 100644
--- a/app/client/system/system.actions.js
+++ b/app/client/system/system.actions.js
@@ -1,7 +1,7 @@
import socket from '../socket'
import types from '../types'
-import actions from '../actions'
+// import actions from '../actions'
export const run = (cmd) => (dispatch) => {
dispatch({ type: types.system.running_command, cmd })
@@ -26,6 +26,7 @@ export const listDirectory = (opt) => (dispatch) => {
}
export const changeTool = (tool) => {
+ localStorage.setItem('system.last_tool', tool)
return { type: types.app.change_tool, tool }
}
@@ -35,7 +36,7 @@ export const enqueue_test_task = (dataset) => dispatch => {
activity: 'cpu',
dataset: dataset,
}
- return actions.queue.add_task(task)
+ // return actions.queue.add_task(task)
}
window.addEventListener('keyDown', e => {
diff --git a/app/client/system/system.reducer.js b/app/client/system/system.reducer.js
index dd980ea..b6c5a83 100644
--- a/app/client/system/system.reducer.js
+++ b/app/client/system/system.reducer.js
@@ -10,7 +10,7 @@ const systemInitialState = {
name: 'loading',
},
app: {
- tool: 'pix2pix',
+ tool: localStorage.getItem('system.last_tool') || 'pix2pix',
},
server: {
connected: false,