summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/viewer/viewer.actions.js
diff options
context:
space:
mode:
Diffstat (limited to 'animism-align/frontend/app/views/viewer/viewer.actions.js')
-rw-r--r--animism-align/frontend/app/views/viewer/viewer.actions.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/animism-align/frontend/app/views/viewer/viewer.actions.js b/animism-align/frontend/app/views/viewer/viewer.actions.js
index ed59793..7f8e1c8 100644
--- a/animism-align/frontend/app/views/viewer/viewer.actions.js
+++ b/animism-align/frontend/app/views/viewer/viewer.actions.js
@@ -2,3 +2,13 @@ import * as types from 'app/types'
import { store, history, dispatch } from 'app/store'
// import { } from 'app/utils'
// import actions from 'app/actions'
+
+export const showSection = section => dispatch => {
+ dispatch({ type: types.viewer.toggle_section, key: section, value: true })
+}
+export const hideSection = section => dispatch => {
+ dispatch({ type: types.viewer.toggle_section, key: section, value: false })
+}
+export const toggleSection = section => dispatch => {
+ dispatch({ type: types.viewer.toggle_section, key: section, value: !store.getState().viewer[section] })
+}