ohif-viewer/Packages/viewerbase/client/components/viewer/simpleToolbarButton/simpleToolbarButton.js
2016-07-22 14:26:29 +02:00

13 lines
338 B
JavaScript

Template.simpleToolbarButton.helpers({
activeClass() {
const instance = Template.instance();
// Check if the current tool is the active one
if (instance.data.id === Session.get('ToolManagerActiveTool')) {
// Return the active class
return 'active';
}
return;
}
});