Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(config) Added option to remove Show More link from GSM popover

robertpin24503c3bd32a
diff --git a/config.js b/config.js
index 3b042fb50c..d9ae5f7425 100644
--- a/config.js
+++ b/config.js
@@ -101,6 +101,10 @@ var config = {
// about the call.
// enableSaveLogs: false,
+ // Enabling this will hide the "Show More" link in the GSM popover that can be
+ // used to display more statistics about the connection (IP, Port, protocol, etc).
+ // disableShowMoreStats: true,
+
// Enabling this will run the lib-jitsi-meet noise detection module which will
// notify the user if there is noise, other than voice, coming from the current
// selected microphone. The purpose it to let the user know that the input could
diff --git a/react/features/base/config/configWhitelist.js b/react/features/base/config/configWhitelist.js
index f2bffdecfa..bb24015574 100644
--- a/react/features/base/config/configWhitelist.js
+++ b/react/features/base/config/configWhitelist.js
@@ -96,6 +96,7 @@ export default [
'disableResponsiveTiles',
'disableRtx',
'disableShortcuts',
+ 'disableShowMoreStats',
'disableSimulcast',
'disableThirdPartyRequests',
'disableTileView',
@@ -112,6 +113,7 @@ export default [
'enableLipSync',
'enableOpusRed',
'enableRemb',
+ 'enableSaveLogs',
'enableScreenshotCapture',
'enableTalkWhileMuted',
'enableNoAudioDetection',
diff --git a/react/features/connection-indicator/components/web/ConnectionIndicator.js b/react/features/connection-indicator/components/web/ConnectionIndicator.js
index 4668ba7137..513cfe5de9 100644
--- a/react/features/connection-indicator/components/web/ConnectionIndicator.js
+++ b/react/features/connection-indicator/components/web/ConnectionIndicator.js
@@ -90,6 +90,12 @@ type Props = AbstractProps & {
*/
enableSaveLogs: boolean,
+ /**
+ * Whether or not should display the "Show More" link in the local video
+ * stats table.
+ */
+ disableShowMoreStats: boolean,
+
/**
* Whether or not clicking the indicator should display a popover for more
* details.
@@ -391,6 +397,7 @@ class ConnectionIndicator extends AbstractConnectionIndicator<Props, State> {
bridgeCount = { bridgeCount }
codec = { codec }
connectionSummary = { this._getConnectionStatusTip() }
+ disableShowMoreStats = { this.props.disableShowMoreStats }
e2eRtt = { e2eRtt }
enableSaveLogs = { this.props.enableSaveLogs }
framerate = { framerate }
@@ -448,7 +455,8 @@ export function _mapStateToProps(state: Object, ownProps: Props) {
= typeof participantId === 'undefined' ? getLocalParticipant(state) : getParticipantById(state, participantId);
const props = {
_connectionStatus: participant?.connectionStatus,
- enableSaveLogs: state['features/base/config'].enableSaveLogs
+ enableSaveLogs: state['features/base/config'].enableSaveLogs,
+ disableShowMoreStats: state['features/base/config'].disableShowMoreStats
};
if (conference) {
diff --git a/react/features/connection-stats/components/ConnectionStatsTable.js b/react/features/connection-stats/components/ConnectionStatsTable.js
index d3382368f4..267d784c81 100644
--- a/react/features/connection-stats/components/ConnectionStatsTable.js
+++ b/react/features/connection-stats/components/ConnectionStatsTable.js
@@ -59,6 +59,11 @@ type Props = {
*/
enableSaveLogs: boolean,
+ /**
+ * Whether or not should display the "Show More" link.
+ */
+ disableShowMoreStats: boolean,
+
/**
* The endpoint id of this client.
*/
@@ -170,7 +175,7 @@ class ConnectionStatsTable extends Component<Props> {
* @returns {ReactElement}
*/
render() {
- const { isLocalVideo, enableSaveLogs } = this.props;
+ const { isLocalVideo, enableSaveLogs, disableShowMoreStats } = this.props;
return (
<div
@@ -179,7 +184,7 @@ class ConnectionStatsTable extends Component<Props> {
{ this._renderStatistics() }
<div className = 'connection-actions'>
{ isLocalVideo && enableSaveLogs ? this._renderSaveLogs() : null}
- { this._renderShowMoreLink() }
+ { !disableShowMoreStats && this._renderShowMoreLink() }
</div>
{ this.props.shouldShowMore ? this._renderAdditionalStats() : null }
</div>