mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
Implements a filmstrip-only mode for the toolbox
This commit is contained in:
@@ -8,10 +8,6 @@ import {
|
||||
} from '../actions';
|
||||
import ToolbarButton from './ToolbarButton';
|
||||
|
||||
declare var APP: Object;
|
||||
declare var config: Object;
|
||||
declare var interfaceConfig: Object;
|
||||
|
||||
/**
|
||||
* Implements a toolbar in React/Web. It is a strip that contains a set of
|
||||
* toolbar items such as buttons. Toolbar is commonly placed inside of a
|
||||
@@ -153,6 +149,15 @@ class Toolbar extends Component {
|
||||
toolbarButtons
|
||||
} = this.props;
|
||||
|
||||
// Only a few buttons have custom button handlers defined, so this
|
||||
// list may be undefined or empty depending on the buttons we're
|
||||
// rendering.
|
||||
// TODO: merge the buttonHandlers and onClick properties and come up
|
||||
// with a consistent event handling property.
|
||||
if (!buttonHandlers) {
|
||||
return;
|
||||
}
|
||||
|
||||
Object.keys(buttonHandlers).forEach(key => {
|
||||
let button = toolbarButtons.get(key);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user