Procházet zdrojové kódy

fix(config) add missing buttons to default constants

- Remove button list from interface_config.js since it has been deprecated for a
  while
- Alphabetically sort buttons in config.js and constants.js to make it easier to
  add / remove items
- Add missing invite and toggle-camera buttons to default constants
- Remove no longer existing "fodeviceselection" button

Fixes: https://github.com/jitsi/jitsi-meet/issues/9605
master
Saúl Ibarra Corretgé před 3 roky
rodič
revize
bac0a55421
3 změnil soubory, kde provedl 64 přidání a 18 odebrání
  1. 32
    5
      config.js
  2. 1
    7
      interface_config.js
  3. 31
    6
      react/features/base/config/constants.js

+ 32
- 5
config.js Zobrazit soubor

@@ -462,11 +462,38 @@ var config = {
462 462
     // - 'desktop' controls the "Share your screen" button
463 463
     // - if `toolbarButtons` is undefined, we fallback to enabling all buttons on the UI
464 464
     // toolbarButtons: [
465
-    //    'microphone', 'camera', 'closedcaptions', 'desktop', 'embedmeeting', 'fullscreen',
466
-    //    'fodeviceselection', 'hangup', 'profile', 'participants-pane', 'chat', 'recording',
467
-    //    'livestreaming', 'etherpad', 'sharedvideo', 'shareaudio', 'settings', 'raisehand',
468
-    //    'videoquality', 'filmstrip', 'invite', 'feedback', 'stats', 'shortcuts',
469
-    //    'tileview', 'select-background', 'download', 'help', 'mute-everyone', 'mute-video-everyone', 'security'
465
+    //    'camera',
466
+    //    'chat',
467
+    //    'closedcaptions',
468
+    //    'desktop',
469
+    //    'download',
470
+    //    'embedmeeting',
471
+    //    'etherpad',
472
+    //    'feedback',
473
+    //    'filmstrip',
474
+    //    'fullscreen',
475
+    //    'hangup',
476
+    //    'help',
477
+    //    'invite',
478
+    //    'livestreaming',
479
+    //    'microphone',
480
+    //    'mute-everyone',
481
+    //    'mute-video-everyone',
482
+    //    'participants-pane',
483
+    //    'profile',
484
+    //    'raisehand',
485
+    //    'recording',
486
+    //    'security',
487
+    //    'select-background',
488
+    //    'settings',
489
+    //    'shareaudio',
490
+    //    'sharedvideo',
491
+    //    'shortcuts',
492
+    //    'stats',
493
+    //    'tileview',
494
+    //    'toggle-camera',
495
+    //    'videoquality',
496
+    //    '__end'
470 497
     // ],
471 498
 
472 499
     // Stats

+ 1
- 7
interface_config.js Zobrazit soubor

@@ -208,13 +208,7 @@ var interfaceConfig = {
208 208
      * DEPRECATED!
209 209
      * This config was moved to config.js as `toolbarButtons`.
210 210
      */
211
-    // TOOLBAR_BUTTONS: [
212
-    //     'microphone', 'camera', 'closedcaptions', 'desktop', 'embedmeeting', 'fullscreen',
213
-    //     'fodeviceselection', 'hangup', 'profile', 'chat', 'recording',
214
-    //     'livestreaming', 'etherpad', 'sharedvideo', 'settings', 'raisehand',
215
-    //     'videoquality', 'filmstrip', 'invite', 'feedback', 'stats', 'shortcuts',
216
-    //     'tileview', 'select-background', 'download', 'help', 'mute-everyone', 'mute-video-everyone', 'security'
217
-    // ],
211
+    // TOOLBAR_BUTTONS: [],
218 212
 
219 213
     TOOLBAR_TIMEOUT: 4000,
220 214
 

+ 31
- 6
react/features/base/config/constants.js Zobrazit soubor

@@ -14,10 +14,35 @@ export const _CONFIG_STORE_PREFIX = 'config.js';
14 14
  * @type Array<string>
15 15
  */
16 16
 export const TOOLBAR_BUTTONS = [
17
-    'microphone', 'camera', 'closedcaptions', 'desktop', 'embedmeeting', 'fullscreen',
18
-    'fodeviceselection', 'hangup', 'profile', 'chat', 'recording',
19
-    'livestreaming', 'etherpad', 'sharedvideo', 'shareaudio', 'settings', 'raisehand',
20
-    'videoquality', 'filmstrip', 'participants-pane', 'feedback', 'stats', 'shortcuts',
21
-    'tileview', 'toggle-camera', 'select-background', 'download', 'help', 'mute-everyone', 'mute-video-everyone',
22
-    'security'
17
+    'camera',
18
+    'chat',
19
+    'closedcaptions',
20
+    'desktop',
21
+    'download',
22
+    'embedmeeting',
23
+    'etherpad',
24
+    'feedback',
25
+    'filmstrip',
26
+    'fullscreen',
27
+    'hangup',
28
+    'help',
29
+    'invite',
30
+    'livestreaming',
31
+    'microphone',
32
+    'mute-everyone',
33
+    'mute-video-everyone',
34
+    'participants-pane',
35
+    'profile',
36
+    'raisehand',
37
+    'recording',
38
+    'security',
39
+    'select-background',
40
+    'settings',
41
+    'shareaudio',
42
+    'sharedvideo',
43
+    'shortcuts',
44
+    'stats',
45
+    'tileview',
46
+    'toggle-camera',
47
+    'videoquality'
23 48
 ];

Načítá se…
Zrušit
Uložit