Skip to content

Commit

Permalink
feat(log): Add flag to show or hide the action log
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorgerhardt committed Nov 18, 2016
1 parent ce36b69 commit 1e107ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/containers/indianapolis/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Indianapolis extends Component {
timeCutoff: PropTypes.shape({
selected: PropTypes.number
}),
ui: PropTypes.object,
ui: PropTypes.object.isRequired,
zoom: PropTypes.number
}

Expand Down Expand Up @@ -231,7 +231,7 @@ class Indianapolis extends Component {
{messages.Systems.ComparisonTitle}
</RouteCard>
}
{actionLog && actionLog.length > 0 &&
{ui.showLog && actionLog && actionLog.length > 0 &&
<div className='Card'>
<div className='CardTitle'>Log</div>
<Log
Expand Down
3 changes: 2 additions & 1 deletion src/reducers/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ export default handleActions({
}
}
}, {
fetches: 0
fetches: 0,
showLog: true
})

0 comments on commit 1e107ff

Please sign in to comment.