0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-08 09:42:43 +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', theme : '5ePHB',
lang : 'en' lang : 'en'
}, },
onChange : ()=>{}, onChange : ()=>{},
reportError : ()=>{} reportError : ()=>{}
}; };
@@ -47,8 +48,10 @@ const MetadataEditor = createClass({
getInitialState : function(){ getInitialState : function(){
return { return {
showThumbnail : true, showThumbnail : true,
showThemeWritein : false showThemeWritein : false,
lastThemePulldown : '',
lastThemeWriteIn : ''
}; };
}, },
@@ -60,8 +63,12 @@ const MetadataEditor = createClass({
toggleThemeWritein : function(){ toggleThemeWritein : function(){
this.setState({ 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(){ renderThumbnail : function(){

View File

@@ -71,7 +71,7 @@
border : 1px solid gray; border : 1px solid gray;
&:focus { outline : 1px solid #444444; } &:focus { outline : 1px solid #444444; }
} }
&.thumbnail { &.thumbnail, &.themes{
height : 1.4em; height : 1.4em;
label { line-height : 2.0em; } label { line-height : 2.0em; }
.value { .value {