Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 3230ae3b authored by Robin Tissot's avatar Robin Tissot
Browse files

Segmentation & Transcription panels are opened by default.

parent eddc788a
No related branches found
No related tags found
No related merge requests found
...@@ -14,10 +14,10 @@ export const initialState = () => ({ ...@@ -14,10 +14,10 @@ export const initialState = () => ({
// Manage panels visibility through booleans // Manage panels visibility through booleans
// Those values are initially populated by localStorage // Those values are initially populated by localStorage
visible_panels: { visible_panels: {
source: userProfile.get('source-panel'), source: userProfile.get('visible-panels')?userProfile.get('visible-panels').source:false,
segmentation: userProfile.get('segmentation-panel'), segmentation: userProfile.get('visible-panels')?userProfile.get('visible-panels').segmentation:true,
visualisation: userProfile.get('visualisation-panel'), visualisation: userProfile.get('visible-panels')?userProfile.get('visible-panels').visualisation:true,
diplomatic: userProfile.get('diplomatic-panel') diplomatic: userProfile.get('visible-panels')?userProfile.get('visible-panels').diplomatic:false
}, },
}) })
...@@ -70,7 +70,7 @@ export const actions = { ...@@ -70,7 +70,7 @@ export const actions = {
commit('setVisiblePanels', update) commit('setVisiblePanels', update)
// Persist final value in user profile // Persist final value in user profile
userProfile.set(panel + '-panel', state.visible_panels[panel]) userProfile.set('visible-panels', state.visible_panels)
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment