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,
|
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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue