Commit 6612b6ae authored by christianrhansen's avatar christianrhansen

removed redundant var (mobileSelectedCell became selectedCell.annotation)

parent c380750e
......@@ -35,7 +35,7 @@
q-icon(name="edit")
q-btn.q-px-sm.on-right.on-left(
@click="event => {handleCellContextMenuDelete(event, mobileSelectedCell)}", flat)
@click="event => {handleCellContextMenuDelete(event, selectedCell.annotation)}", flat)
q-icon(name="delete")
q-btn.clear-button.q-px-md.q-mr-md.on-right(@click="clearHandler('cell')", flat)
......@@ -248,7 +248,6 @@
gridDimensions: { gridWidth: 0, gridHeight: 0, cellWidth: 0, cellHeight: 0 },
contextMenuClickPosition: {},
resizingGrid: false,
mobileSelectedCell: undefined,
isMobile: this.$q.platform.is.mobile,
mobileTempCell: {
x: 0,
......@@ -344,7 +343,7 @@
'cellHandler.move.gridPosition': {
handler: function (obj) {
if (this.showEditingCells) {
this.mobileCellMove(this.mobileSelectedCell, obj.column, obj.row)
this.mobileCellMove(this.selectedCell.annotation, obj.column, obj.row)
}
},
deep: true
......@@ -354,7 +353,7 @@
if (this.showEditingCells) {
let w = obj.column - this.cellHandler.move.gridPosition.column + 1
let h = obj.row - this.cellHandler.move.gridPosition.row + 1
this.mobileCellResize(this.mobileSelectedCell, w, h)
this.mobileCellResize(this.selectedCell.annotation, w, h)
}
},
deep: true
......@@ -607,7 +606,7 @@
this.cellHandler.resize.x = this.gridDimensions.full.cell.width * (x + w - 1) - 8 - 20
this.cellHandler.resize.y = this.gridDimensions.full.cell.height * (y + h - 1) - 8 - 20
this.mobileSelectedCell = annotation
this.selectedCell.annotation = annotation
this.getCellType(annotation)
}
},
......
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