瀏覽代碼

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

* Whitelisted enableSaveLogs

* Added config option to hide Show More on GSM popover

* Updated config option
master
robertpin 4 年之前
父節點
當前提交
24503c3bd3
沒有連結到貢獻者的電子郵件帳戶。

+ 4
- 0
config.js 查看文件

101
     // about the call.
101
     // about the call.
102
     // enableSaveLogs: false,
102
     // enableSaveLogs: false,
103
 
103
 
104
+    // Enabling this will hide the "Show More" link in the GSM popover that can be
105
+    // used to display more statistics about the connection (IP, Port, protocol, etc).
106
+    // disableShowMoreStats: true,
107
+
104
     // Enabling this will run the lib-jitsi-meet noise detection module which will
108
     // Enabling this will run the lib-jitsi-meet noise detection module which will
105
     // notify the user if there is noise, other than voice, coming from the current
109
     // notify the user if there is noise, other than voice, coming from the current
106
     // selected microphone. The purpose it to let the user know that the input could
110
     // selected microphone. The purpose it to let the user know that the input could

+ 2
- 0
react/features/base/config/configWhitelist.js 查看文件

96
     'disableResponsiveTiles',
96
     'disableResponsiveTiles',
97
     'disableRtx',
97
     'disableRtx',
98
     'disableShortcuts',
98
     'disableShortcuts',
99
+    'disableShowMoreStats',
99
     'disableSimulcast',
100
     'disableSimulcast',
100
     'disableThirdPartyRequests',
101
     'disableThirdPartyRequests',
101
     'disableTileView',
102
     'disableTileView',
112
     'enableLipSync',
113
     'enableLipSync',
113
     'enableOpusRed',
114
     'enableOpusRed',
114
     'enableRemb',
115
     'enableRemb',
116
+    'enableSaveLogs',
115
     'enableScreenshotCapture',
117
     'enableScreenshotCapture',
116
     'enableTalkWhileMuted',
118
     'enableTalkWhileMuted',
117
     'enableNoAudioDetection',
119
     'enableNoAudioDetection',

+ 9
- 1
react/features/connection-indicator/components/web/ConnectionIndicator.js 查看文件

90
      */
90
      */
91
     enableSaveLogs: boolean,
91
     enableSaveLogs: boolean,
92
 
92
 
93
+    /**
94
+     * Whether or not should display the "Show More" link in the local video
95
+     * stats table.
96
+     */
97
+    disableShowMoreStats: boolean,
98
+
93
     /**
99
     /**
94
      * Whether or not clicking the indicator should display a popover for more
100
      * Whether or not clicking the indicator should display a popover for more
95
      * details.
101
      * details.
391
                 bridgeCount = { bridgeCount }
397
                 bridgeCount = { bridgeCount }
392
                 codec = { codec }
398
                 codec = { codec }
393
                 connectionSummary = { this._getConnectionStatusTip() }
399
                 connectionSummary = { this._getConnectionStatusTip() }
400
+                disableShowMoreStats = { this.props.disableShowMoreStats }
394
                 e2eRtt = { e2eRtt }
401
                 e2eRtt = { e2eRtt }
395
                 enableSaveLogs = { this.props.enableSaveLogs }
402
                 enableSaveLogs = { this.props.enableSaveLogs }
396
                 framerate = { framerate }
403
                 framerate = { framerate }
448
         = typeof participantId === 'undefined' ? getLocalParticipant(state) : getParticipantById(state, participantId);
455
         = typeof participantId === 'undefined' ? getLocalParticipant(state) : getParticipantById(state, participantId);
449
     const props = {
456
     const props = {
450
         _connectionStatus: participant?.connectionStatus,
457
         _connectionStatus: participant?.connectionStatus,
451
-        enableSaveLogs: state['features/base/config'].enableSaveLogs
458
+        enableSaveLogs: state['features/base/config'].enableSaveLogs,
459
+        disableShowMoreStats: state['features/base/config'].disableShowMoreStats
452
     };
460
     };
453
 
461
 
454
     if (conference) {
462
     if (conference) {

+ 7
- 2
react/features/connection-stats/components/ConnectionStatsTable.js 查看文件

59
      */
59
      */
60
     enableSaveLogs: boolean,
60
     enableSaveLogs: boolean,
61
 
61
 
62
+    /**
63
+     * Whether or not should display the "Show More" link.
64
+     */
65
+    disableShowMoreStats: boolean,
66
+
62
     /**
67
     /**
63
      * The endpoint id of this client.
68
      * The endpoint id of this client.
64
      */
69
      */
170
      * @returns {ReactElement}
175
      * @returns {ReactElement}
171
      */
176
      */
172
     render() {
177
     render() {
173
-        const { isLocalVideo, enableSaveLogs } = this.props;
178
+        const { isLocalVideo, enableSaveLogs, disableShowMoreStats } = this.props;
174
 
179
 
175
         return (
180
         return (
176
             <div
181
             <div
179
                 { this._renderStatistics() }
184
                 { this._renderStatistics() }
180
                 <div className = 'connection-actions'>
185
                 <div className = 'connection-actions'>
181
                     { isLocalVideo && enableSaveLogs ? this._renderSaveLogs() : null}
186
                     { isLocalVideo && enableSaveLogs ? this._renderSaveLogs() : null}
182
-                    { this._renderShowMoreLink() }
187
+                    { !disableShowMoreStats && this._renderShowMoreLink() }
183
                 </div>
188
                 </div>
184
                 { this.props.shouldShowMore ? this._renderAdditionalStats() : null }
189
                 { this.props.shouldShowMore ? this._renderAdditionalStats() : null }
185
             </div>
190
             </div>

Loading…
取消
儲存