mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-03 10:32:39 +00:00
Attempt to save state but seems to break brew.
This commit is contained in:
@@ -40,6 +40,7 @@ const MetadataEditor = createClass({
|
||||
theme : '5ePHB',
|
||||
lang : 'en'
|
||||
},
|
||||
|
||||
onChange : ()=>{},
|
||||
reportError : ()=>{}
|
||||
};
|
||||
@@ -47,8 +48,10 @@ const MetadataEditor = createClass({
|
||||
|
||||
getInitialState : function(){
|
||||
return {
|
||||
showThumbnail : true,
|
||||
showThemeWritein : false
|
||||
showThumbnail : true,
|
||||
showThemeWritein : false,
|
||||
lastThemePulldown : '',
|
||||
lastThemeWriteIn : ''
|
||||
};
|
||||
},
|
||||
|
||||
@@ -60,8 +63,12 @@ const MetadataEditor = createClass({
|
||||
|
||||
toggleThemeWritein : function(){
|
||||
this.setState({
|
||||
showThemeWritein : !this.state.showThemeWritein
|
||||
showThemeWritein : !this.state.showThemeWritein,
|
||||
// lastThemePulldown : !this.state.showThemeWritein ? this.props.metadata.theme : this.state.lastThemePulldown,
|
||||
// lastThemeWriteIn : !this.state.showThemeWritein ? this.state.lastThemePulldown : this.props.metadata.theme
|
||||
});
|
||||
// if(this.state.showThemeWritein) this.props.metadata.theme = this.state.lastThemeWriteIn;
|
||||
// else this.props.metadata.theme = this.state.lastThemePulldown;
|
||||
},
|
||||
|
||||
renderThumbnail : function(){
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
border : 1px solid gray;
|
||||
&:focus { outline : 1px solid #444444; }
|
||||
}
|
||||
&.thumbnail {
|
||||
&.thumbnail, &.themes{
|
||||
height : 1.4em;
|
||||
label { line-height : 2.0em; }
|
||||
.value {
|
||||
|
||||
Reference in New Issue
Block a user