mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2025-12-12 07:40:26 -08:00
remove second contextual menu as it brings nothing more than the full contextual menu
This commit is contained in:
committed by
Matthieu Baumann
parent
628ea826bf
commit
6b21b2899f
@@ -1477,11 +1477,6 @@ export let View = (function () {
|
|||||||
this.selection = null;
|
this.selection = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// reattach the default contextmenu
|
|
||||||
if (this.aladin.contextMenu) {
|
|
||||||
this.aladin.contextMenu.attach(DefaultActionsForContextMenu.getDefaultActions(this.aladin));
|
|
||||||
}
|
|
||||||
|
|
||||||
this.requestRedraw();
|
this.requestRedraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1559,22 +1554,6 @@ export let View = (function () {
|
|||||||
})
|
})
|
||||||
|
|
||||||
this.aladin.measurementTable.showMeasurement(tables);
|
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();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user