Commit 4222a404 authored by christianrhansen's avatar christianrhansen

cell-context-menu for desktop only atm. added comments.

parent 86764b79
......@@ -58,7 +58,7 @@
q-btn.edit-button.absolute.fit.bg-transparent(
@click.prevent="event => {touchMobileCell(event, annotation)}", flat)
// selecting cells disabled because it has no use currently
//----- selecting cells disabled because it has no use currently
// switch with cell component below to re-enable it
//cell(
@click.native.prevent="event => {handleCellClick(event, annotation)}", :annotation="annotation", :preview="true")
......@@ -67,7 +67,7 @@
:preview="true"
)
//----- resize-handler (cell)
//----- resize-handler
.desktop-only.cell-item-resize-handle(
draggable="true",
@dragstart="event => {handleCellResizerDragStart(event, annotation)}",
......@@ -75,7 +75,9 @@
@dragexit="event => {handleCellResizerDragEnd(event, annotation)}")
q-icon(name="network cell")
q-context-menu
//----- context menu for cells (desktop only)
// TODO: needs revision
q-context-menu.desktop-only
q-list(link, separator, no-border, style="min-width: 150px; max-height: 300px;")
q-item(
v-for="action in cellContextMenuActions",
......@@ -84,6 +86,7 @@
@click.native="event => {action.handler(event, annotation)}")
q-item-main(:label="action.label")
//----- temporary cell when pulling a new cell into grid (desktop)
template(v-for="(tmpCell, index) in tmpObjects")
.cell-item.cell-item-tmp(:style="getAnnotationStyle(tmpCell)", :key="`cell-tmp-${index}`")
cell(:cell="tmpCell")
......
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