LT-250: Fixing non-active state issue for toolbar
This commit is contained in:
1 parent
35711b057d
commit
022c534895
4 files changed
+23
-12
No files matched your search
@@ -0,0 +1,13 @@
|
||||
Template.toolbarSectionButton.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;
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user