From 6b21b2899fce3ac3f8266dfeab214e59303c2133 Mon Sep 17 00:00:00 2001 From: bmatthieu3 Date: Fri, 14 Mar 2025 18:33:23 +0100 Subject: [PATCH] remove second contextual menu as it brings nothing more than the full contextual menu --- src/js/View.js | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/js/View.js b/src/js/View.js index 20256cf7..88063ef1 100644 --- a/src/js/View.js +++ b/src/js/View.js @@ -1477,11 +1477,6 @@ export let View = (function () { this.selection = null; } - // reattach the default contextmenu - if (this.aladin.contextMenu) { - this.aladin.contextMenu.attach(DefaultActionsForContextMenu.getDefaultActions(this.aladin)); - } - this.requestRedraw(); } @@ -1559,22 +1554,6 @@ export let View = (function () { }) this.aladin.measurementTable.showMeasurement(tables); - let a = this.aladin; - const sampBtn = SAMPActionButton.sendSources(a); - - if (a.contextMenu) { - a.contextMenu.attach([ - { - label: Layout.horizontal([sampBtn, a.samp ? 'Send selection to SAMP' : 'SAMP disabled']), - }, - { - label: 'Remove selection', - action(o) { - a.view.unselectObjects(); - } - } - ]); - } } }