0
0
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:
David Bolack
2024-12-29 23:23:48 -06:00
parent 5eb8432544
commit 7c357a2aa1
2 changed files with 11 additions and 4 deletions

View File

@@ -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(){

View File

@@ -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 {