0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-27 15:52:39 +00:00

Stub out History function on Editor Nav Bar

This commit is contained in:
G.Ambatte
2024-09-14 17:32:07 +12:00
parent c77d6e5fae
commit ace790739f

View File

@@ -70,7 +70,7 @@ const Snippetbar = createClass({
mergeCustomizer : function(oldValue, newValue, key) {
if(key == 'snippets') {
const result = _.reverse(_.unionBy(_.reverse(newValue), _.reverse(oldValue), 'name')); // Join snippets together, with preference for the child theme over the parent theme
return result.filter(snip => snip.gen || snip.subsnippets);
return result.filter((snip)=>snip.gen || snip.subsnippets);
}
},
@@ -138,6 +138,10 @@ const Snippetbar = createClass({
});
},
showHistory : function () {
console.log('show history');
},
renderEditorButtons : function(){
if(!this.props.showEditButtons) return;
@@ -158,6 +162,10 @@ const Snippetbar = createClass({
}
return <div className='editors'>
<div className={'editorTool history'}
onClick={this.showHistory} >
<i className='fas fa-clock-rotate-left' />
</div>
<div className={`editorTool undo ${this.props.historySize.undo ? 'active' : ''}`}
onClick={this.props.undo} >
<i className='fas fa-undo' />