LT-398: Manual stack scroll synchronization
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
Reference in new issue
Block a user