LT-398: Manual stack scroll synchronization

This commit is contained in:
Leonardo Campos committed 2017-01-05 17:53:54 -02:00
1 parent e3561690f1
commit 1d2c1c55fe
11 files changed
+117 -59

No files matched your search

@@ -13,9 +13,11 @@ Template.toolbarSectionButton.onCreated(() => {
const currentId = instance.data.id;
const isCurrentTool = currentId === activeToolId;
const isSubTool = subTools && _.findWhere(subTools, { id: activeToolId });
const activeCommandButtons = Session.get('ToolManagerActiveCommandButtons') || [];
const isActiveCommandButton = activeCommandButtons.indexOf(instance.data.id) !== -1;
// Check if the current tool or a sub tool is the active one
return isCurrentTool || isSubTool;
// Check if the current tool, a sub tool or a command button is active
return isCurrentTool || isSubTool || isActiveCommandButton;
};
instance.getActiveToolSubProperty = (propertyName, activeToolId) => {