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

@@ -276,6 +276,23 @@ toolManager = {
},
getDefaultTool() {
return defaultTool;
},
activateCommandButton(button) {
const activeCommandButtons = Session.get('ToolManagerActiveCommandButtons') || [];
if(activeCommandButtons.indexOf(button) === -1) {
activeCommandButtons.push('link');
Session.set('ToolManagerActiveCommandButtons', activeCommandButtons);
}
},
deactivateCommandButton(button) {
const activeCommandButtons = Session.get('ToolManagerActiveCommandButtons') || [];
const index = activeCommandButtons.indexOf(button);
if(index !== -1) {
activeCommandButtons.splice(index, 1);
Session.set('ToolManagerActiveCommandButtons', activeCommandButtons);
}
}
};