fix(filmstrip-only): prevent stats display

This commit is contained in:
Leonard Kim 2017-10-09 15:19:25 -07:00 committed by yanas
parent 8e59660f33
commit fafffb519b
2 changed files with 11 additions and 4 deletions

View File

@ -66,6 +66,11 @@ class Popover extends Component {
*/ */
content: PropTypes.object, content: PropTypes.object,
/**
* Whether displaying of the popover should be prevented.
*/
disablePopover: PropTypes.bool,
/** /**
* An id attribute to apply to the root of the {@code Popover} * An id attribute to apply to the root of the {@code Popover}
* component. * component.
@ -148,12 +153,13 @@ class Popover extends Component {
* @returns {void} * @returns {void}
*/ */
_onShowDialog() { _onShowDialog() {
this.setState({ showDialog: true }); if (!this.props.disablePopover) {
this.setState({ showDialog: true });
if (this.props.onPopoverOpen) { if (this.props.onPopoverOpen) {
this.props.onPopoverOpen(); this.props.onPopoverOpen();
}
} }
} }
/** /**

View File

@ -222,6 +222,7 @@ class ConnectionIndicator extends Component {
<Popover <Popover
className = { rootClassNames } className = { rootClassNames }
content = { this._renderStatisticsTable() } content = { this._renderStatisticsTable() }
disablePopover = { !this.props.enableStatsDisplay }
position = { this.props.statsPopoverPosition }> position = { this.props.statsPopoverPosition }>
<div className = 'popover-trigger'> <div className = 'popover-trigger'>
<div <div