Enabling child tools labeling and removing
This commit is contained in:
1 parent
4e31faa294
commit
ebcdf80d49
8 files changed
+117
-33
No files matched your search
+3
-2
@@ -1,5 +1,4 @@
|
||||
import { Template } from 'meteor/templating';
|
||||
import { _ } from 'meteor/underscore';
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
import { Viewerbase } from 'meteor/ohif:viewerbase';
|
||||
|
||||
@@ -47,6 +46,8 @@ Template.measurementTableHeaderRow.helpers({
|
||||
Template.measurementTableHeaderRow.events({
|
||||
'click .js-setTool'(event, instance) {
|
||||
const { toolGroup } = instance.data;
|
||||
Viewerbase.toolManager.setActiveTool(toolGroup.childTools[0].cornerstoneToolType);
|
||||
const toolType = toolGroup.childTools[0].cornerstoneToolType;
|
||||
const activeToolId = Array.isArray(toolType) ? toolType[0] : toolType;
|
||||
Viewerbase.toolManager.setActiveTool(activeToolId);
|
||||
}
|
||||
});
|
||||
+2
-2
@@ -111,7 +111,7 @@
|
||||
|
||||
.timepointData
|
||||
display: flex
|
||||
height: 27px
|
||||
min-height: 27px
|
||||
margin-top: 1px
|
||||
|
||||
div
|
||||
@@ -120,4 +120,4 @@
|
||||
font-weight: 400
|
||||
justify-content: space-around
|
||||
line-height: 18px
|
||||
padding-bottom: 10px
|
||||
padding-bottom: 4px
|
||||
+7
-2
@@ -2,7 +2,6 @@
|
||||
|
||||
.measurementTableTimepointCell
|
||||
theme('border-left', '%s solid $uiBorderColor' % $uiBorderThickness)
|
||||
theme('color', '$textPrimaryColor')
|
||||
cursor: pointer
|
||||
padding: 0 10px
|
||||
position: relative
|
||||
@@ -14,8 +13,14 @@
|
||||
right: 5px
|
||||
top: 3px
|
||||
|
||||
span
|
||||
display: block
|
||||
|
||||
&.loading .loading-spinner
|
||||
display: block
|
||||
|
||||
&:hover
|
||||
&, span
|
||||
theme('color', '$textPrimaryColor')
|
||||
|
||||
&:hover, span:hover
|
||||
theme('color', '$activeColor')
|
||||
Reference in new issue
Block a user