From 63674429a6c5227d8dbae4fb12c99da0e5a783d1 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 24 Mar 2021 10:58:13 +0300 Subject: [PATCH] [DE] Refactoring: hide protect button when show history --- apps/documenteditor/main/app/view/FileMenu.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/documenteditor/main/app/view/FileMenu.js b/apps/documenteditor/main/app/view/FileMenu.js index e550d78a6..ffdd1b0fa 100644 --- a/apps/documenteditor/main/app/view/FileMenu.js +++ b/apps/documenteditor/main/app/view/FileMenu.js @@ -413,9 +413,11 @@ define([ SetDisabled: function(disable) { var _btn_save = this.getButton('save'), - _btn_rename = this.getButton('rename'); + _btn_rename = this.getButton('rename'), + _btn_protect = this.getButton('protect'); _btn_save[(disable || !this.mode.isEdit)?'hide':'show'](); + _btn_protect[(disable || !this.mode.isEdit)?'hide':'show'](); _btn_rename[(disable || !this.mode.canRename || this.mode.isDesktopApp) ?'hide':'show'](); }, @@ -440,7 +442,7 @@ define([ } else if (type == 'rename') { return this.miRename; - }else + }else if (type == 'protect') { return this.miProtect; }