Implements a filmstrip-only mode for the toolbox

This commit is contained in:
yanas
2017-04-06 13:43:36 -05:00
committed by Lyubo Marinov
parent 031f2dfeb8
commit 77b789e26a
9 changed files with 123 additions and 36 deletions

View File

@@ -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);