diff --git a/client/homebrew/editor/metadataEditor/metadataEditor.jsx b/client/homebrew/editor/metadataEditor/metadataEditor.jsx
index 2768597da..054ce6bbe 100644
--- a/client/homebrew/editor/metadataEditor/metadataEditor.jsx
+++ b/client/homebrew/editor/metadataEditor/metadataEditor.jsx
@@ -144,16 +144,29 @@ const MetadataEditor = createClass({
};
const currentTheme = this.getThemeData(this.props.metadata.renderer, this.props.metadata.theme);
+ let dropdown;
+
+ if(this.props.metadata.renderer == 'legacy') {
+ dropdown =
+
+
+ {`Themes are not suppdorted in the Legacy Renderer`}
+
+ ;
+ } else {
+ dropdown =
+
+
+ {`${_.upperFirst(currentTheme.renderer)} : ${currentTheme.name}`}
+
+ {/*listThemes('Legacy')*/}
+ {listThemes('V3')}
+ ;
+ }
return
theme
-
-
- {`${_.upperFirst(currentTheme.renderer)} : ${currentTheme.name}`}
-
- {listThemes('Legacy')}
- {listThemes('V3')}
-
+ {dropdown}
;
},
diff --git a/client/homebrew/editor/metadataEditor/metadataEditor.less b/client/homebrew/editor/metadataEditor/metadataEditor.less
index b170e9517..10ae9e89a 100644
--- a/client/homebrew/editor/metadataEditor/metadataEditor.less
+++ b/client/homebrew/editor/metadataEditor/metadataEditor.less
@@ -86,11 +86,16 @@
font-size: 13.33px;
.navDropdownContainer {
background-color: white;
-
width: 100%;
&:hover {
background-color: rgb(187, 187, 187);
}
+ &.disabled {
+ font-style:italic;
+ font-style: italic;
+ background-color: darkgray;
+ color: dimgray;
+ }
&>div:first-child {
border : 2px solid rgb(118,118,118);
padding : 6px 3px;
diff --git a/shared/naturalcrit/nav/nav.jsx b/shared/naturalcrit/nav/nav.jsx
index 6f3e84973..20b55d005 100644
--- a/shared/naturalcrit/nav/nav.jsx
+++ b/shared/naturalcrit/nav/nav.jsx
@@ -98,17 +98,18 @@ const Nav = {
);
},
render : function () {
+ console.log(this.props.children);
const dropdownChildren = React.Children.map(this.props.children, (child, i)=>{
// Ignore the first child
if(i < 1) return;
return child;
});
return (
- {this.handleDropdown(true);} : undefined}
onClick= {this.props.trigger == 'click' ? ()=>{this.handleDropdown(true);} : undefined}
onMouseLeave={()=>this.handleDropdown(false)}>
- {this.props.children[0]}
+ {this.props.children[0] || this.props.children} //children is not an array when only one child
{this.renderDropdown(dropdownChildren)}
);