mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-07 20:42:44 +00:00
Partially implement disabled BrewSnippets
This commit is contained in:
@@ -217,8 +217,6 @@ const Snippetbar = createClass({
|
|||||||
renderEditorButtons : function(){
|
renderEditorButtons : function(){
|
||||||
if(!this.props.showEditButtons) return;
|
if(!this.props.showEditButtons) return;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='editors'>
|
<div className='editors'>
|
||||||
{this.props.view !== 'meta' && <><div className='historyTools'>
|
{this.props.view !== 'meta' && <><div className='historyTools'>
|
||||||
@@ -324,10 +322,11 @@ const SnippetGroup = createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
render : function(){
|
render : function(){
|
||||||
|
const groupName = `groupName ${this.props.snippets.length === 0 ? 'disabled' : ''}`;
|
||||||
return <div className='snippetGroup snippetBarButton'>
|
return <div className='snippetGroup snippetBarButton'>
|
||||||
<div className='text'>
|
<div className='text'>
|
||||||
<i className={this.props.icon} />
|
<i className={this.props.icon} />
|
||||||
<span className='groupName'>{this.props.groupName}</span>
|
<span className={groupName}>{this.props.groupName}</span>
|
||||||
</div>
|
</div>
|
||||||
<div className='dropdown'>
|
<div className='dropdown'>
|
||||||
{this.renderSnippets(this.props.snippets)}
|
{this.renderSnippets(this.props.snippets)}
|
||||||
|
|||||||
Reference in New Issue
Block a user