Commit cfea0964 authored by christianrhansen's avatar christianrhansen

added "new cell"-state to mosys store

parent 94464018
Pipeline #16371 passed with stage
in 2 minutes and 20 seconds
......@@ -8,9 +8,11 @@ const mosys = {
selectedCells: [],
editingCells: [],
scrollPositionCache: 0,
editMode: undefined
editMode: undefined,
newCell: undefined
},
getters: {
getNewCell: state => state.newCell,
getShowSources: state => state.showSources,
getShowAddCells: state => state.showAddCells,
getSelectedCells: state => state.selectedCells,
......@@ -20,6 +22,9 @@ const mosys = {
getEditMode: state => state.editMode
},
mutations: {
setNewCell (state, cell) {
state.newCell = cell
},
setEditMode (state, mode) {
state.editMode === mode ? state.editMode = undefined : state.editMode = mode
},
......
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