LT-115: Activate CR/UN/EX tools data when lesion table is clicked
This commit is contained in:
parent
a4521c0fa7
commit
a41e50d79f
@ -161,6 +161,7 @@
|
||||
response: toolName,
|
||||
isTarget: true,
|
||||
measurementType: 'nonTarget',
|
||||
toolType: toolType,
|
||||
toolName: 'Target'
|
||||
};
|
||||
|
||||
|
||||
@ -83,6 +83,9 @@ function updateLesionData(lesionData) {
|
||||
id: lesionData.id,
|
||||
measurementType: lesionData.measurementType
|
||||
};
|
||||
if (lesionData.toolType) {
|
||||
measurement.toolType = lesionData.toolType;
|
||||
}
|
||||
|
||||
// Retrieve the location name given the locationUID
|
||||
if (lesionData.locationUID !== undefined) {
|
||||
|
||||
@ -60,7 +60,12 @@ function activateTool(element, measurementData, timepointId) {
|
||||
deactivateAllToolData(element, 'lesion');
|
||||
deactivateAllToolData(element, 'nonTarget');
|
||||
|
||||
var toolType = measurementData.isTarget ? 'lesion' : 'nonTarget';
|
||||
// Deactivate CRUNEX Tools
|
||||
deactivateAllToolData(element, 'crTool');
|
||||
deactivateAllToolData(element, 'unTool');
|
||||
deactivateAllToolData(element, 'exTool');
|
||||
|
||||
var toolType = measurementData.toolType ? measurementData.toolType:(measurementData.isTarget ? 'lesion' : 'nonTarget');
|
||||
var toolData = cornerstoneTools.getToolState(element, toolType);
|
||||
if (!toolData) {
|
||||
return;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user