fix(toolbar): remove ref to removed MAIN_TOOLBAR_BUTTONS (#2787)

This commit is contained in:
virtuacoplenny 2018-04-10 13:51:37 -07:00 committed by Aaron van Meerten
parent 8b2ce21e1a
commit ea1aef0703
1 changed files with 1 additions and 2 deletions

View File

@ -28,6 +28,5 @@ export function getToolboxHeight() {
* is enabled, false - otherwise. * is enabled, false - otherwise.
*/ */
export function isButtonEnabled(name: string) { export function isButtonEnabled(name: string) {
return interfaceConfig.TOOLBAR_BUTTONS.indexOf(name) !== -1 return interfaceConfig.TOOLBAR_BUTTONS.indexOf(name) !== -1;
|| interfaceConfig.MAIN_TOOLBAR_BUTTONS.indexOf(name) !== -1;
} }