From 996c2f56419f1f918ae19e81a93bdbfcb95ddae5 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 30 Jul 2018 12:12:38 +0300 Subject: [PATCH] [DE] Enable inserting shapes when shape is selected --- apps/documenteditor/main/app/controller/Toolbar.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Toolbar.js b/apps/documenteditor/main/app/controller/Toolbar.js index f062fd10a..27a845726 100644 --- a/apps/documenteditor/main/app/controller/Toolbar.js +++ b/apps/documenteditor/main/app/controller/Toolbar.js @@ -742,10 +742,12 @@ define([ need_disable = paragraph_locked || header_locked || in_header || in_image || in_equation && !btn_eq_state || in_footnote || in_control; toolbar.btnsPageBreak.setDisabled(need_disable); - need_disable = paragraph_locked || header_locked || !can_add_image || in_equation || control_plain; - toolbar.btnInsertImage.setDisabled(need_disable); + need_disable = paragraph_locked || header_locked || in_equation || control_plain; toolbar.btnInsertShape.setDisabled(need_disable); toolbar.btnInsertText.setDisabled(need_disable); + + need_disable = paragraph_locked || header_locked || !can_add_image || in_equation || control_plain; + toolbar.btnInsertImage.setDisabled(need_disable); toolbar.btnInsertTextArt.setDisabled(need_disable || in_image || in_footnote); if (in_chart !== this._state.in_chart) {