Skip to content
Snippets Groups Projects
Commit 44dbe66b authored by chris's avatar chris
Browse files

better naming

parent 34953638
No related branches found
No related tags found
1 merge request!91make more in tools set from config
...@@ -14,6 +14,9 @@ const MoreButton = styled.button` ...@@ -14,6 +14,9 @@ const MoreButton = styled.button`
background: none; background: none;
border: none; border: none;
cursor: pointer; cursor: pointer;
&:active {
outline: none;
}
`; `;
const InnerStyled = styled.div` const InnerStyled = styled.div`
...@@ -31,7 +34,7 @@ const ToolGroupComponent = ({ view, tools, name, title }) => { ...@@ -31,7 +34,7 @@ const ToolGroupComponent = ({ view, tools, name, title }) => {
DisplayTitle = isFunction(title) ? title : () => title; DisplayTitle = isFunction(title) ? title : () => title;
tools.forEach(tool => { tools.forEach(tool => {
tool.ishiddeInToolGroup() && tool.isDisplayed() tool.isIntoMoreSection() && tool.isDisplayed()
? rest.push(tool.renderTool(view)) ? rest.push(tool.renderTool(view))
: toolsShown.push(tool.renderTool(view)); : toolsShown.push(tool.renderTool(view));
}); });
......
...@@ -10,7 +10,6 @@ export default class Tools { ...@@ -10,7 +10,6 @@ export default class Tools {
content = "content"; content = "content";
_isDisplayed = true; _isDisplayed = true;
_isHiddenInToolGroup = false; _isHiddenInToolGroup = false;
hideOnToolbar = false;
onlyOnMain = false; onlyOnMain = false;
config = {}; config = {};
pmplugins = {}; pmplugins = {};
...@@ -76,7 +75,7 @@ export default class Tools { ...@@ -76,7 +75,7 @@ export default class Tools {
this._isHiddenInToolGroup = true; this._isHiddenInToolGroup = true;
} }
ishiddeInToolGroup() { isIntoMoreSection() {
return this._isHiddenInToolGroup; return this._isHiddenInToolGroup;
} }
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment