diff --git a/app/main.py b/app/main.py index cf3370f..b27680f 100644 --- a/app/main.py +++ b/app/main.py @@ -39,7 +39,7 @@ async def lifespan(_app: FastAPI): app = FastAPI( title="FlowDeck", - version="2.4.3", + version="2.4.4", docs_url="/docs" if settings.log_level == "DEBUG" else None, redoc_url=None, lifespan=lifespan, diff --git a/app/templates/local_workspace.html b/app/templates/local_workspace.html index 5cea4fa..8249c9e 100644 --- a/app/templates/local_workspace.html +++ b/app/templates/local_workspace.html @@ -341,6 +341,7 @@ @dragleave="onDragLeave($event)" @drop.prevent="onDrop($event)" @keydown="onKeydown($event)" + @contextmenu.prevent="onContextMenu($event)" @click.self="ctxMenu.visible = false" tabindex="0" x-ref="layout"> @@ -1267,13 +1268,11 @@ document.addEventListener('alpine:init', function() { if (!id) { this.ctxMenu.visible = false; return; } var node = this._findNodeById(this.displayTree, id); if (!node) { this.ctxMenu.visible = false; return; } - this.ctxMenu = { - visible: true, - x: ev.clientX, - y: ev.clientY, - node: node, - tags: [...(node.tags||[])] - }; + this.ctxMenu.visible = true; + this.ctxMenu.x = ev.clientX; + this.ctxMenu.y = ev.clientY; + this.ctxMenu.node = node; + this.ctxMenu.tags = [...(node.tags||[])]; this.ctxTagAdding = false; this.ctxTagExistingOpen = false; this.ctxNewTagColor = '#787774';