LT-398: Toggle manual stack scroll synchronization between viewports

This commit is contained in:
Leonardo Campos committed 2016-12-29 11:37:25 -02:00
1 parent 2e6c8245d8
commit c3fc0b2b3b
9 files changed
+187 -4

No files matched your search

@@ -170,6 +170,14 @@ Template.toolbarSection.helpers({
svgLink: '/packages/ohif_viewerbase/assets/icons.svg#icon-tools-elliptical-roi'
});
buttonData.push({
id: 'linkStackScroll',
title: 'Link Scroll',
classes: 'imageViewerCommand toolbarSectionButton nonAutoDisableState',
svgLink: '/packages/ohif_viewerbase/assets/icons.svg#icon-tools-link-stack-scroll',
disableFunction: isStackScrollLinkingDisabled
});
buttonData.push({
id: 'toggleCineDialog',
title: 'CINE',
@@ -235,7 +243,7 @@ Template.toolbarSection.onRendered(function() {
// Set disabled/enabled tool buttons that are set in toolManager
const states = toolManager.getToolDefaultStates();
const disabledToolButtons = states.disabledToolButtons;
const allToolbarButtons = $('.toolbarSection').find('.toolbarSectionButton');
const allToolbarButtons = $('.toolbarSection').find('.toolbarSectionButton:not(.nonAutoDisableState)');
// Additional toolbar buttons whose classes are not toolbarSectionButton
allToolbarButtons.push($('#toolbarSectionEntry')[0]);