summaryrefslogtreecommitdiff
path: root/app/client/modules/morph
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-26 16:09:33 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-26 16:09:33 +0200
commit2f0fd83837f9d728b384b033e0b9b2b8570df2de (patch)
tree32400963c262138481259d9d1205245f30429e68 /app/client/modules/morph
parent577e2753bd7979badcaf23274bbb7327fa892512 (diff)
agh
Diffstat (limited to 'app/client/modules/morph')
-rw-r--r--app/client/modules/morph/morph.reducer.js10
-rw-r--r--app/client/modules/morph/views/morph.app.js1
2 files changed, 11 insertions, 0 deletions
diff --git a/app/client/modules/morph/morph.reducer.js b/app/client/modules/morph/morph.reducer.js
index 92cbc9e..99e2001 100644
--- a/app/client/modules/morph/morph.reducer.js
+++ b/app/client/modules/morph/morph.reducer.js
@@ -27,6 +27,16 @@ const morphReducer = (state = morphInitialState, action) => {
...state,
app: action.app,
}
+ case types.file.create:
+ console.log(action)
+ if (action.data.module !== 'morph') return state
+ return {
+ ...state,
+ app: state.app && {
+ ...state.app,
+ files: [action.data].concat(state.app.files)
+ }
+ }
default:
return state
}
diff --git a/app/client/modules/morph/views/morph.app.js b/app/client/modules/morph/views/morph.app.js
index 09294a3..5848616 100644
--- a/app/client/modules/morph/views/morph.app.js
+++ b/app/client/modules/morph/views/morph.app.js
@@ -141,6 +141,7 @@ class MorphResults extends Component {
</Group>
</div>
+ <h3>morphed videos</h3>
<FileList
linkFiles
files={files}