Merge branch 'master' into master
This commit is contained in:
@@ -70,7 +70,7 @@
|
||||
"react-motion": "^0.5.2",
|
||||
"react-object-inspector": "0.2.1",
|
||||
"react-redux": "^4.x.x",
|
||||
"react-split-pane": "0.1.57",
|
||||
"react-split-pane": "0.1.70",
|
||||
"redux": "^3.x.x",
|
||||
"redux-immutable": "3.0.8",
|
||||
"redux-logger": "*",
|
||||
|
||||
@@ -76,13 +76,14 @@ export default class ObjectModel extends Component {
|
||||
{
|
||||
!(properties && properties.size) ? null : properties.entrySeq().map(
|
||||
([key, value]) => {
|
||||
let isDeprecated = isOAS3() && value.get("deprecated")
|
||||
let isRequired = List.isList(requiredProperties) && requiredProperties.contains(key)
|
||||
let propertyStyle = { verticalAlign: "top", paddingRight: "0.2em" }
|
||||
if ( isRequired ) {
|
||||
propertyStyle.fontWeight = "bold"
|
||||
}
|
||||
|
||||
return (<tr key={key}>
|
||||
return (<tr key={key} className={isDeprecated && "deprecated"}>
|
||||
<td style={ propertyStyle }>
|
||||
{ key }{ isRequired && <span style={{ color: "red" }}>*</span> }
|
||||
</td>
|
||||
|
||||
@@ -12,6 +12,10 @@
|
||||
{
|
||||
color: $model-deprecated-font-color !important;
|
||||
}
|
||||
|
||||
> td:first-of-type {
|
||||
text-decoration: line-through;
|
||||
}
|
||||
}
|
||||
&-toggle
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user