diff --git a/theseus_gui/src/App.vue b/theseus_gui/src/App.vue index 6071a8b5f..330d4e4f8 100644 --- a/theseus_gui/src/App.vue +++ b/theseus_gui/src/App.vue @@ -54,7 +54,8 @@ watch(notificationsWrapper, () => { notifications.setNotifs(notificationsWrapper.value) }) -// Link handler +document.addEventListener('contextmenu', (event) => event.preventDefault()) + document.querySelector('body').addEventListener('click', function (e) { let target = e.target while (target != null) { diff --git a/theseus_gui/src/components/GridDisplay.vue b/theseus_gui/src/components/GridDisplay.vue index 449df3064..b200546af 100644 --- a/theseus_gui/src/components/GridDisplay.vue +++ b/theseus_gui/src/components/GridDisplay.vue @@ -1,7 +1,20 @@ + diff --git a/theseus_gui/src/components/ui/ContextMenu.vue b/theseus_gui/src/components/ui/ContextMenu.vue new file mode 100644 index 000000000..00a124649 --- /dev/null +++ b/theseus_gui/src/components/ui/ContextMenu.vue @@ -0,0 +1,161 @@ + + + + + diff --git a/theseus_gui/src/components/ui/Instance.vue b/theseus_gui/src/components/ui/Instance.vue index 060073566..88f4af966 100644 --- a/theseus_gui/src/components/ui/Instance.vue +++ b/theseus_gui/src/components/ui/Instance.vue @@ -1,21 +1,24 @@