From 3b05a16b327588960540681b01e322b84d05c8c1 Mon Sep 17 00:00:00 2001 From: yanas Date: Tue, 13 Sep 2016 22:10:13 -0500 Subject: [PATCH] Fix for button appearing in both toolbars --- index.html | 2 +- modules/UI/util/UIUtil.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 209529741..725aaa65b 100644 --- a/index.html +++ b/index.html @@ -123,7 +123,7 @@ - + diff --git a/modules/UI/util/UIUtil.js b/modules/UI/util/UIUtil.js index 321de2be9..b55191189 100644 --- a/modules/UI/util/UIUtil.js +++ b/modules/UI/util/UIUtil.js @@ -112,7 +112,8 @@ * is enabled, {false} - otherwise */ isButtonEnabled: function (name) { - return interfaceConfig.TOOLBAR_BUTTONS.indexOf(name) !== -1; + return interfaceConfig.TOOLBAR_BUTTONS.indexOf(name) !== -1 + || interfaceConfig.MAIN_TOOLBAR_BUTTONS.indexOf(name) !== -1; }, /** * Indicates if the setting section is enabled.