Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
Adds raise hand button to the side toolbar
yanascf49c8c6ff3d
diff --git a/index.html b/index.htmlindex e647cceaef..209529741f 100644--- a/index.html+++ b/index.html@@ -123,6 +123,7 @@<a class="button icon-contactList" id="toolbar_contact_list" data-container="body" data-toggle="popover" data-placement="right" shortcut="contactlistpopover" data-i18n="[content]bottomtoolbar.contactlist" content="Open / close contact list"><span id="numberOfParticipants"></span></a>+ <a class="button icon-link" id="toolbar_button_link" data-container="body" data-toggle="popover" data-placement="right" data-i18n="[content]toolbar.invite" content="Invite others"></a><a class="button icon-chat" id="toolbar_button_chat" data-container="body" data-toggle="popover" shortcut="toggleChatPopover" data-placement="right" data-i18n="[content]toolbar.chat" content="Open / close chat"><span id="unreadMessages"></span></a>@@ -137,6 +138,7 @@<a class="button icon-telephone" id="toolbar_button_sip" data-container="body" data-toggle="popover" data-placement="right" content="Call SIP number" data-i18n="[content]toolbar.sip" style="display: none"></a><a class="button icon-dialpad" id="toolbar_button_dialpad" data-container="body" data-toggle="popover" data-placement="right" content="Open dialpad" data-i18n="[content]toolbar.dialpad" style="display: none"></a><a class="button icon-settings" id="toolbar_button_settings" data-container="body" data-toggle="popover" data-placement="right" content="Settings" data-i18n="[content]toolbar.Settings"></a>+ <a class="button icon-raised-hand" id="toolbar_button_raisehand" data-container="body" data-toggle="popover" data-placement="right" data-i18n="[content]toolbar.raiseHand" content="Raise Hand" shortcut="raiseHandPopover"></a><a class="button icon-full-screen" id="toolbar_button_fullScreen" data-container="body" data-toggle="popover" data-placement="right" shortcut="toggleFullscreenPopover" data-i18n="[content]toolbar.fullscreen" content="Enter / Exit Full Screen"></a><a class="button icon-toggle-filmstrip" id="toolbar_film_strip" data-container="body" data-toggle="popover" shortcut="filmstripPopover" data-placement="right" data-i18n="[content]toolbar.filmstrip" content="Show / hide videos"></a><a class="button icon-feedback" id="feedbackButton" data-container="body" data-toggle="popover" data-placement="right" data-i18n="[content]feedback"></a>diff --git a/interface_config.js b/interface_config.jsindex 6eeaf17255..9780d27f20 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 regexMAIN_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:lineSETTINGS_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 thediff --git a/modules/UI/toolbars/Toolbar.js b/modules/UI/toolbars/Toolbar.jsindex 94f92f6b60..876b6f1086 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)) {