From ba43c0d04536624c41ff84ac25478552e68de1f6 Mon Sep 17 00:00:00 2001 From: maxkadushkin Date: Tue, 9 Jun 2020 23:18:44 +0300 Subject: [PATCH] [DE] wrong 'undo'/'redo' state for 'comparing' mode --- apps/documenteditor/main/app/controller/Toolbar.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/documenteditor/main/app/controller/Toolbar.js b/apps/documenteditor/main/app/controller/Toolbar.js index da5f1e5dd..9104cedc2 100644 --- a/apps/documenteditor/main/app/controller/Toolbar.js +++ b/apps/documenteditor/main/app/controller/Toolbar.js @@ -339,6 +339,8 @@ define([ $('#id-save-style-plus, #id-save-style-link', toolbar.$el).on('click', this.onMenuSaveStyle.bind(this)); this.onSetupCopyStyleButton(); + this.onBtnChangeState('undo:disabled', toolbar.btnUndo, toolbar.btnUndo.isDisabled()); + this.onBtnChangeState('redo:disabled', toolbar.btnRedo, toolbar.btnRedo.isDisabled()); }, setApi: function(api) { @@ -3382,4 +3384,4 @@ define([ textInsert: 'Insert' }, DE.Controllers.Toolbar || {})); -}); \ No newline at end of file +});