summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/viewer/viewer.actions.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-11-21 17:13:16 +0100
committerJules Laplace <julescarbon@gmail.com>2020-11-21 17:13:16 +0100
commitbfbe5cd2af71b2f2ebb2ad5282a92c069b717e4d (patch)
treee437c02274bd0e7883ea349d3df3ef4423dbfa30 /animism-align/frontend/app/views/viewer/viewer.actions.js
parent21420bc2db178fc8814d8edd3955205925199f8c (diff)
logo color on scroll. percolate whether we are in fullscreen mode
Diffstat (limited to 'animism-align/frontend/app/views/viewer/viewer.actions.js')
-rw-r--r--animism-align/frontend/app/views/viewer/viewer.actions.js6
1 files changed, 6 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 9131763..c1136e7 100644
--- a/animism-align/frontend/app/views/viewer/viewer.actions.js
+++ b/animism-align/frontend/app/views/viewer/viewer.actions.js
@@ -307,6 +307,12 @@ export const toggleNavGradient = value => dispatch => {
dispatch({ type: types.viewer.toggle_component, key: 'navGradient', value: value })
}
+export const updateFullscreenStatus = (value, persist) => dispatch => {
+ console.log('fullscreen', value, persist)
+ dispatch({ type: types.viewer.toggle_component, key: 'isFullscreen', value: value })
+ dispatch({ type: types.viewer.toggle_component, key: 'isFullscreenPersist', value: persist })
+}
+
export const toggleComponent = key => dispatch => {
hideNavElementsNotMatchedBy(key)(dispatch)
const state = store.getState().viewer