From bac0a5542115032488492d345c8dea0fcb65c231 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Mon, 26 Jul 2021 11:56:36 +0200 Subject: [PATCH] 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 --- config.js | 37 +++++++++++++++++++++---- interface_config.js | 8 +----- react/features/base/config/constants.js | 37 +++++++++++++++++++++---- 3 files changed, 64 insertions(+), 18 deletions(-) diff --git a/config.js b/config.js index 1cca741b1f..451e6a7ad8 100644 --- a/config.js +++ b/config.js @@ -462,11 +462,38 @@ var config = { // - 'desktop' controls the "Share your screen" button // - if `toolbarButtons` is undefined, we fallback to enabling all buttons on the UI // toolbarButtons: [ - // 'microphone', 'camera', 'closedcaptions', 'desktop', 'embedmeeting', 'fullscreen', - // 'fodeviceselection', 'hangup', 'profile', 'participants-pane', 'chat', 'recording', - // 'livestreaming', 'etherpad', 'sharedvideo', 'shareaudio', 'settings', 'raisehand', - // 'videoquality', 'filmstrip', 'invite', 'feedback', 'stats', 'shortcuts', - // 'tileview', 'select-background', 'download', 'help', 'mute-everyone', 'mute-video-everyone', 'security' + // 'camera', + // 'chat', + // 'closedcaptions', + // 'desktop', + // 'download', + // 'embedmeeting', + // 'etherpad', + // 'feedback', + // 'filmstrip', + // 'fullscreen', + // 'hangup', + // 'help', + // 'invite', + // 'livestreaming', + // 'microphone', + // 'mute-everyone', + // 'mute-video-everyone', + // 'participants-pane', + // 'profile', + // 'raisehand', + // 'recording', + // 'security', + // 'select-background', + // 'settings', + // 'shareaudio', + // 'sharedvideo', + // 'shortcuts', + // 'stats', + // 'tileview', + // 'toggle-camera', + // 'videoquality', + // '__end' // ], // Stats diff --git a/interface_config.js b/interface_config.js index 39b4743fbe..fa9c88343c 100644 --- a/interface_config.js +++ b/interface_config.js @@ -208,13 +208,7 @@ var interfaceConfig = { * DEPRECATED! * This config was moved to config.js as `toolbarButtons`. */ - // TOOLBAR_BUTTONS: [ - // 'microphone', 'camera', 'closedcaptions', 'desktop', 'embedmeeting', 'fullscreen', - // 'fodeviceselection', 'hangup', 'profile', 'chat', 'recording', - // 'livestreaming', 'etherpad', 'sharedvideo', 'settings', 'raisehand', - // 'videoquality', 'filmstrip', 'invite', 'feedback', 'stats', 'shortcuts', - // 'tileview', 'select-background', 'download', 'help', 'mute-everyone', 'mute-video-everyone', 'security' - // ], + // TOOLBAR_BUTTONS: [], TOOLBAR_TIMEOUT: 4000, diff --git a/react/features/base/config/constants.js b/react/features/base/config/constants.js index 1922c1ff04..3abca50b4c 100644 --- a/react/features/base/config/constants.js +++ b/react/features/base/config/constants.js @@ -14,10 +14,35 @@ export const _CONFIG_STORE_PREFIX = 'config.js'; * @type Array */ export const TOOLBAR_BUTTONS = [ - 'microphone', 'camera', 'closedcaptions', 'desktop', 'embedmeeting', 'fullscreen', - 'fodeviceselection', 'hangup', 'profile', 'chat', 'recording', - 'livestreaming', 'etherpad', 'sharedvideo', 'shareaudio', 'settings', 'raisehand', - 'videoquality', 'filmstrip', 'participants-pane', 'feedback', 'stats', 'shortcuts', - 'tileview', 'toggle-camera', 'select-background', 'download', 'help', 'mute-everyone', 'mute-video-everyone', - 'security' + 'camera', + 'chat', + 'closedcaptions', + 'desktop', + 'download', + 'embedmeeting', + 'etherpad', + 'feedback', + 'filmstrip', + 'fullscreen', + 'hangup', + 'help', + 'invite', + 'livestreaming', + 'microphone', + 'mute-everyone', + 'mute-video-everyone', + 'participants-pane', + 'profile', + 'raisehand', + 'recording', + 'security', + 'select-background', + 'settings', + 'shareaudio', + 'sharedvideo', + 'shortcuts', + 'stats', + 'tileview', + 'toggle-camera', + 'videoquality' ];