Commit 5a5f00ac authored by christianrhansen's avatar christianrhansen

mobile: just one cell is editable at a time

parent 549ea0c8
Pipeline #13545 passed with stage
in 8 minutes and 18 seconds
......@@ -199,7 +199,7 @@
await this.fetchData()
},
showEditingCells (val) {
console.log('show editing cells', val)
// console.log('show editing cells', val)
if (val === false) {
this.updateAnnotationUIStates()
}
......@@ -255,6 +255,13 @@
// return _this.cells.find(c => c._uuid === k)
return _this.annotations.find(c => c._uuid === k)
})
/*
console.log('this.annotationUIStates: ', this.annotationUIStates)
console.log('editingCells: ', editingCells)
if (this.isMobile) {
console.log('MOBILE')
}
*/
this.$store.commit('mosys/setEditingCells', editingCells)
},
updateAnnotationUIStates () {
......@@ -365,8 +372,12 @@
// CELL DRAG & DROP HANDLERS
//
handleCellEditClick (event, cell) {
if (this.isMobile) {
Object.keys(this.annotationUIStates).filter(k => { this.annotationUIStates[k].editing = false })
}
this.annotationUIStates[cell._uuid].editing = !this.annotationUIStates[cell._uuid].editing
this.updateEditingCells()
console.log('this.showEditingCells', this.showEditingCells)
this.$root.$emit('mosys_saveScrollPosition')
},
......
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