Commit b767999b authored by christianrhansen's avatar christianrhansen

mosys mobile: added "edit"-button to selected cell

parent 7de3c0ef
......@@ -64,7 +64,6 @@
// v-touch-hold="event => {cellHold(event, annotation)}",
.cell-item(
v-if="!annotationUIStates[annotation._uuid] || !annotationUIStates[annotation._uuid].beingDragged",
v-touch-hold="event => {handleCellInfoTouch(event, annotation)}",
draggable="true",
@click.prevent="event => {handleCellTouch(event, annotation)}",
@dragstart="event => {handleCellDragStart(event, annotation)}",
......@@ -84,8 +83,13 @@
:icon="annotationUIStates[annotation._uuid].editing ? 'close' : 'edit'", flat, round, size="md"
)
.mobile-only
q-btn.edit-button.absolute.fit.bg-transparent(
@click.prevent="event => {touchMobileCell(event, annotation)}", flat)
.edit-button.absolute.fit.bg-transparent(
v-touch-hold="event => {handleCellInfoTouch(event, annotation)}",
@click.prevent="event => {touchMobileCell(event, annotation)}")
q-btn.absolute-top-right.text-dark.q-pa-none.q-mr-xs(
@click.prevent="event => {handleCellInfoTouch(event, annotation)}",
flat, round, size="sm", style="margin-top: 2px;")
q-icon(name="edit", size="20px")
//----- invisible edit-modal handler
//
......
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