0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-28 13:32:39 +00:00

Hide themes behind flag "enable_themes"

This commit is contained in:
Trevor Buckner
2022-09-05 17:05:37 -04:00
parent c2a5aad1e8
commit eae5fc9be9
6 changed files with 19 additions and 15 deletions

View File

@@ -152,6 +152,8 @@ const MetadataEditor = createClass({
},
renderThemeDropdown : function(){
if(!global.enable_themes) return;
const listThemes = (renderer)=>{
return _.map(_.values(Themes[renderer]), (theme)=>{
return <div className='item' key={''} onClick={()=>this.handleTheme(theme)} title={''}>