From cb61ccb5f3f86e944a80a1b519498add8e4fc8fa Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 15 Oct 2020 17:14:06 +0300 Subject: [PATCH] [DE] Fix Bug 46725 --- apps/common/main/lib/view/Header.js | 2 ++ apps/documenteditor/main/app/controller/Main.js | 1 + 2 files changed, 3 insertions(+) diff --git a/apps/common/main/lib/view/Header.js b/apps/common/main/lib/view/Header.js index 013d52043..edc32f215 100644 --- a/apps/common/main/lib/view/Header.js +++ b/apps/common/main/lib/view/Header.js @@ -630,6 +630,8 @@ define([ getButton: function(type) { if (type == 'save') return this.btnSave; + else if (type == 'users') + return $panelUsers; }, lockHeaderBtns: function (alias, lock) { diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index 6d3284d4d..0d90807a3 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -545,6 +545,7 @@ define([ } else { this.api.asc_coAuthoringDisconnect(); appHeader.setCanRename(false); + appHeader.getButton('users') && appHeader.getButton('users').hide(); this.getApplication().getController('LeftMenu').getView('LeftMenu').showHistory(); this.disableEditing(true); var versions = opts.data.history,