diff --git a/index.html b/index.html index e647cceae..209529741 100644 --- a/index.html +++ b/index.html @@ -123,6 +123,7 @@ + @@ -137,6 +138,7 @@ + diff --git a/interface_config.js b/interface_config.js index 6eeaf1725..9780d27f2 100644 --- a/interface_config.js +++ b/interface_config.js @@ -20,7 +20,7 @@ var interfaceConfig = { // the toolbar buttons line is intentionally left in one line, to be able // to easily override values or remove them using regex MAIN_TOOLBAR_BUTTONS: ['microphone', 'camera', 'desktop', 'invite', 'hangup'], // jshint ignore:line - TOOLBAR_BUTTONS: ['profile', 'authentication', 'microphone', 'camera', 'desktop', 'recording', 'security', 'invite', 'chat', 'etherpad', 'sharedvideo', 'fullscreen', 'sip', 'dialpad', 'settings', 'hangup', 'filmstrip', 'contacts'], // jshint ignore:line + TOOLBAR_BUTTONS: ['profile', 'authentication', 'microphone', 'camera', 'desktop', 'recording', 'security', 'raisehand', 'chat', 'etherpad', 'sharedvideo', 'fullscreen', 'sip', 'dialpad', 'settings', 'hangup', 'filmstrip', 'contacts'], // jshint ignore:line SETTINGS_SECTIONS: ['language', 'devices', 'moderator'], // Determines how the video would fit the screen. 'both' would fit the whole // screen, 'height' would fit the original video height to the height of the diff --git a/modules/UI/toolbars/Toolbar.js b/modules/UI/toolbars/Toolbar.js index 94f92f6b6..876b6f108 100644 --- a/modules/UI/toolbars/Toolbar.js +++ b/modules/UI/toolbars/Toolbar.js @@ -341,10 +341,14 @@ const Toolbar = { this.toolbarSelector = $("#mainToolbarContainer"); this.extendedToolbarSelector = $("#extendedToolbar"); - this._initMainToolbarButtons(); - + // First hide all disabled buttons in the extended toolbar. + // TODO: Make the extended toolbar dynamically created. UIUtil.hideDisabledButtons(defaultToolbarButtons); + // Initialise the main toolbar. The main toolbar will only take into + // account it's own configuration from interface_config. + this._initMainToolbarButtons(); + Object.keys(defaultToolbarButtons).forEach( id => { if (UIUtil.isButtonEnabled(id)) {