From ace790739f43719dc895910aad169fc8068e9de1 Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Sat, 14 Sep 2024 17:32:07 +1200 Subject: [PATCH] Stub out History function on Editor Nav Bar --- client/homebrew/editor/snippetbar/snippetbar.jsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/client/homebrew/editor/snippetbar/snippetbar.jsx b/client/homebrew/editor/snippetbar/snippetbar.jsx index f2680079e..714adc001 100644 --- a/client/homebrew/editor/snippetbar/snippetbar.jsx +++ b/client/homebrew/editor/snippetbar/snippetbar.jsx @@ -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
+
+ +