Merge branch 'master' into bug/3904-operation-not-updating

This commit is contained in:
kyle
2017-11-16 22:33:30 -08:00
committed by GitHub
2 changed files with 6 additions and 1 deletions

View File

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

View File

@@ -12,6 +12,10 @@
{
color: $model-deprecated-font-color !important;
}
> td:first-of-type {
text-decoration: line-through;
}
}
&-toggle
{