OHIF-223: Add "Clear" all measurements to annotation toolbar (#1861)
* Add clear button * Use james event * Create new commands module to default
This commit is contained in:
1 parent
61fc093fc5
commit
11fbe4cf01
13 files changed
+112
-7
No files matched your search
@@ -62,6 +62,7 @@ export default function mode({ modeConfiguration }) {
|
||||
'Bidirectional',
|
||||
'Ellipse',
|
||||
'Length',
|
||||
'Clear',
|
||||
]);
|
||||
|
||||
// Could import layout selector here from org.ohif.default (when it exists!)
|
||||
|
||||
@@ -307,4 +307,19 @@ export default [
|
||||
type: 'secondary',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'Clear',
|
||||
type: 'ohif.action',
|
||||
config: {
|
||||
groupName: 'primaryTool',
|
||||
},
|
||||
props: {
|
||||
isActive: false,
|
||||
icon: 'old-trash',
|
||||
label: 'Clear',
|
||||
commandName: 'clearMeasurements',
|
||||
commandOptions: {},
|
||||
type: 'secondary',
|
||||
},
|
||||
},
|
||||
];
|
||||
Reference in new issue
Block a user