Commit b3b41640 authored by christianrhansen's avatar christianrhansen

disable edit buttons if not permitted

parent 08331350
Pipeline #56490 passed with stage
in 2 minutes and 54 seconds
......@@ -14,11 +14,13 @@ const mosys = {
editCellModal: false,
currentTimeline: undefined,
sourceCellInput: undefined,
mayEdit: false,
editGrid: false,
dimensions: {}
},
getters: {
getMayEdit: state => state.mayEdit,
getEditGrid: state => state.editGrid,
getSourceCellInput: state => state.sourceCellInput,
getNewCell: state => state.newCell,
......@@ -32,6 +34,10 @@ const mosys = {
getCurrentTimeline: state => state.currentTimeline
},
mutations: {
setMayEdit (state, value) {
state.mayEdit = value
console.log('STORE', value)
},
toggleGridEdit (state) {
state.editGrid = !state.editGrid
},
......
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