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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user