Commit 13afc5f0 authored by christianrhansen's avatar christianrhansen

save edit mode in store

parent f15f369d
Subproject commit c56b6b9791c74327f215f7b7bd198787a4007292
Subproject commit 82fd5ad3aa47ff18f1e467189a72f1f66f5b2b9e
Subproject commit 7b01a7e0c419c20a7335c91648425eb9e04c0e06
Subproject commit eb4fb8ee496c55138185a28b7a986bc0cc32a84a
......@@ -7,7 +7,8 @@ const mosys = {
showEditingCells: false,
selectedCells: [],
editingCells: [],
scrollPositionCache: 0
scrollPositionCache: 0,
editMode: undefined
},
getters: {
getShowSources: state => state.showSources,
......@@ -15,9 +16,13 @@ const mosys = {
getSelectedCells: state => state.selectedCells,
getEditingCells: state => state.editingCells,
getShowEditingCells: state => state.showEditingCells,
getScrollPositionCache: state => state.scrollPositionCache
getScrollPositionCache: state => state.scrollPositionCache,
getEditMode: state => state.editMode
},
mutations: {
setEditMode (state, mode) {
state.editMode = mode
},
setEditingCells (state, cells) {
state.editingCells = cells
state.showEditingCells = cells.length > 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment