0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-05 03:42:38 +00:00

Remove metadata on the Homepage (#1121)

* Remove the metadata button on home page

1) Hopefully make it more clear that the Homepage is meant as a sandbox to test out the site, not a real brew that will be saved.

2) Also, avoid errors resulting from trying to modify the metadata of a brew that doesn't really exist yet.

* Lint
This commit is contained in:
Trevor Buckner
2020-11-27 21:14:15 -05:00
committed by GitHub
parent 3fbddd2e41
commit 8ffea70b2f
3 changed files with 18 additions and 12 deletions

View File

@@ -23,6 +23,7 @@ const Editor = createClass({
metadata : {},
onMetadataChange : ()=>{},
showMetaButton : true
};
},
getInitialState : function() {
@@ -118,7 +119,8 @@ const Editor = createClass({
brew={this.props.value}
onInject={this.handleInject}
onToggle={this.handgleToggle}
showmeta={this.state.showMetadataEditor} />
showmeta={this.state.showMetadataEditor}
showMetaButton={this.props.showMetaButton} />
{this.renderMetadataEditor()}
<CodeEditor
ref='codeEditor'