LT-115: Adapting MeasurementAPI to new tools storage structure
This commit is contained in:
1 parent
bd748eae32
commit
c9c2cd548e
14 files changed
+77
-72
No files matched your search
@@ -3,13 +3,6 @@ import { Blaze } from 'meteor/blaze';
|
||||
import { _ } from 'meteor/underscore';
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
|
||||
const toolMap = {
|
||||
bidirectional: 'targets',
|
||||
targetCR: 'targets',
|
||||
targetUN: 'targets',
|
||||
targetEX: 'targets'
|
||||
};
|
||||
|
||||
OHIF.measurements.toggleLabelButton = options => {
|
||||
const removeButtonView = () => {
|
||||
if (!options.instance.buttonView) {
|
||||
@@ -24,8 +17,8 @@ OHIF.measurements.toggleLabelButton = options => {
|
||||
removeButtonView();
|
||||
}
|
||||
|
||||
const tool = options.measurementTypeId || toolMap[options.toolType];
|
||||
const toolCollection = options.measurementApi[tool];
|
||||
const tool = options.toolType;
|
||||
const toolCollection = options.measurementApi.tools[tool];
|
||||
const measurement = toolCollection.findOne(options.measurementId);
|
||||
|
||||
const data = {
|
||||
|
||||
Reference in new issue
Block a user