|
@@ -115,13 +115,16 @@ class VideoQualityDialog extends Component {
|
115
|
115
|
render() {
|
116
|
116
|
const { _audioOnly, _p2p, t } = this.props;
|
117
|
117
|
const activeSliderOption = this._mapCurrentQualityToSliderValue();
|
|
118
|
+ const showP2PWarning = _p2p && !_audioOnly;
|
118
|
119
|
|
119
|
120
|
return (
|
120
|
121
|
<div className = 'video-quality-dialog'>
|
121
|
122
|
<h3 className = 'video-quality-dialog-title'>
|
122
|
123
|
{ t('videoStatus.callQuality') }
|
123
|
124
|
</h3>
|
124
|
|
- { !_audioOnly && _p2p ? this._renderP2PMessage() : null }
|
|
125
|
+ <div className = { showP2PWarning ? '' : 'hide-warning' }>
|
|
126
|
+ { this._renderP2PMessage() }
|
|
127
|
+ </div>
|
125
|
128
|
<div className = 'video-quality-dialog-contents'>
|
126
|
129
|
<div className = 'video-quality-dialog-slider-container'>
|
127
|
130
|
{ /* FIXME: onChange and onMouseUp are both used for
|