@ -168,8 +168,13 @@ const buttonHandlers = {
} ,
"toolbar_film_strip" : function ( ) {
JitsiMeetJS . analytics . sendEvent (
'bottom toolbar.filmstrip.toggled' ) ;
'toolbar.filmstrip.toggled' ) ;
emitter . emit ( UIEvents . TOGGLE _FILM _STRIP ) ;
} ,
"toolbar_button_raisehand" : function ( ) {
JitsiMeetJS . analytics . sendEvent (
'toolbar.raiseHand.clicked' ) ;
APP . conference . maybeToggleRaisedHand ( ) ;
}
} ;
@ -288,6 +293,19 @@ const defaultToolbarButtons = {
APP . UI . toggleFilmStrip ( ) ;
} ,
shortcutDescription : "keyboardShortcuts.toggleFilmstrip"
} ,
'raisehand' : {
id : "toolbar_button_raisehand" ,
className : "button icon-raised-hand" ,
shortcut : "R" ,
shortcutAttr : "raiseHandPopover" ,
shortcutFunc : function ( ) {
JitsiMeetJS . analytics . sendEvent ( "shortcut.raisehand.clicked" ) ;
APP . conference . maybeToggleRaisedHand ( ) ;
} ,
shortcutDescription : "keyboardShortcuts.raiseHand" ,
content : "Raise Hand" ,
i18n : "[content]toolbar.raiseHand"
}
} ;
@ -323,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 ) ) {
@ -679,16 +701,9 @@ const Toolbar = {
}
) ;
} ,
/ * *
* TODO : Fix mic popups
* < a class = "button icon-microphone" id = "toolbar_button_mute" data - container = "body" data - toggle = "popover" data - placement = "bottom" shortcut = "mutePopover" data - i18n = "[content]toolbar.mute" content = "Mute / Unmute" >
* < ul id = "micMutedPopup" class = "loginmenu" >
* < li data - i18n = "[html]toolbar.micMutedPopup" > < / l i >
* < / u l >
* < ul id = "unableToUnmutePopup" class = "loginmenu" >
* < li data - i18n = "[html]toolbar.unableToUnmutePopup" > < / l i >
* < / u l >
* < / a >
* Initialise main toolbar buttons .
* /
_initMainToolbarButtons ( ) {
interfaceConfig . MAIN _TOOLBAR _BUTTONS . forEach ( ( value , index ) => {