31 lines
716 B
TypeScript
31 lines
716 B
TypeScript
const defaultContextMenu = {
|
|||
|
|
id: 'measurementsContextMenu',
|
||
|
|
customizationType: 'ohif.contextMenu',
|
||
|
|
menus: [
|
||
|
|
// Get the items from the UI Customization for the menu name (and have a custom name)
|
||
|
|
{
|
||
|
|
id: 'forExistingMeasurement',
|
||
|
|
selector: ({ nearbyToolData }) => !!nearbyToolData,
|
||
|
|
items: [
|
||
|
|
{
|
||
|
|
label: 'Delete measurement',
|
||
|
|
commands: [
|
||
|
|
{
|
||
|
|
commandName: 'deleteMeasurement',
|
||
|
|
},
|
||
|
|
],
|
||
|
|
},
|
||
|
|
{
|
||
|
|
label: 'Add Label',
|
||
|
|
commands: [
|
||
|
|
{
|
||
|
|
commandName: 'setMeasurementLabel',
|
||
|
|
},
|
||
|
|
],
|
||
|
|
},
|
||
|
|
],
|
||
|
|
},
|
||
|
|
],
|
||
|
|
};
|
||
|
|
|
||
|
|
export default defaultContextMenu;
|