fix(filmstrip-only): prevent stats display
This commit is contained in:
parent
8e59660f33
commit
fafffb519b
|
@ -66,6 +66,11 @@ class Popover extends Component {
|
|||
*/
|
||||
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}
|
||||
* component.
|
||||
|
@ -148,12 +153,13 @@ class Popover extends Component {
|
|||
* @returns {void}
|
||||
*/
|
||||
_onShowDialog() {
|
||||
this.setState({ showDialog: true });
|
||||
if (!this.props.disablePopover) {
|
||||
this.setState({ showDialog: true });
|
||||
|
||||
if (this.props.onPopoverOpen) {
|
||||
this.props.onPopoverOpen();
|
||||
if (this.props.onPopoverOpen) {
|
||||
this.props.onPopoverOpen();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -222,6 +222,7 @@ class ConnectionIndicator extends Component {
|
|||
<Popover
|
||||
className = { rootClassNames }
|
||||
content = { this._renderStatisticsTable() }
|
||||
disablePopover = { !this.props.enableStatsDisplay }
|
||||
position = { this.props.statsPopoverPosition }>
|
||||
<div className = 'popover-trigger'>
|
||||
<div
|
||||
|
|
Loading…
Reference in New Issue