Skip to content

Commit

Permalink
Add support for docExpansion flag to models
Browse files Browse the repository at this point in the history
Show a more compressed view if docExpansion is set to "none"
  • Loading branch information
gwynjudd committed Jun 7, 2017
1 parent 4038b11 commit 2d0c660
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/components/models.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ export default class Models extends Component {
}

render(){
let { specSelectors, getComponent, layoutSelectors, layoutActions } = this.props
let { specSelectors, getComponent, layoutSelectors, layoutActions, getConfigs } = this.props
let definitions = specSelectors.definitions()
let showModels = layoutSelectors.isShown("models", true)
let { docExpansion } = getConfigs()
let showModels = layoutSelectors.isShown("models", docExpansion === "full" || docExpansion === "list" )

const Model = getComponent("model")
const Collapse = getComponent("Collapse")
Expand Down

0 comments on commit 2d0c660

Please sign in to comment.