0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-27 00:42:40 +00:00

Partially implement disabled BrewSnippets

This commit is contained in:
David Bolack
2024-12-10 21:52:38 -06:00
parent 6e5f071f22
commit dae297e0f5

View File

@@ -217,8 +217,6 @@ const Snippetbar = createClass({
renderEditorButtons : function(){
if(!this.props.showEditButtons) return;
return (
<div className='editors'>
{this.props.view !== 'meta' && <><div className='historyTools'>
@@ -324,10 +322,11 @@ const SnippetGroup = createClass({
},
render : function(){
const groupName = `groupName ${this.props.snippets.length === 0 ? 'disabled' : ''}`;
return <div className='snippetGroup snippetBarButton'>
<div className='text'>
<i className={this.props.icon} />
<span className='groupName'>{this.props.groupName}</span>
<span className={groupName}>{this.props.groupName}</span>
</div>
<div className='dropdown'>
{this.renderSnippets(this.props.snippets)}