From d220dba95c94a9cdb3359f6fabe23871ab67cba7 Mon Sep 17 00:00:00 2001 From: OVSharova Date: Sat, 19 Feb 2022 17:14:05 +0300 Subject: [PATCH] Fix bug DE --- .../main/app/view/FileMenuPanels.js | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/apps/documenteditor/main/app/view/FileMenuPanels.js b/apps/documenteditor/main/app/view/FileMenuPanels.js index 1eba44777..44f5d7d7c 100644 --- a/apps/documenteditor/main/app/view/FileMenuPanels.js +++ b/apps/documenteditor/main/app/view/FileMenuPanels.js @@ -232,7 +232,7 @@ define([ template: _.template([ '
', '', - '', + '', '', '', '', @@ -247,7 +247,7 @@ define([ '', '', '', - '', + '', '', '', '', @@ -274,16 +274,16 @@ define([ '', '', '', - '', + '', '', '', - '', + '', '', '', - '', + '', '', '', - '', + '', '', '', '', @@ -292,8 +292,8 @@ define([ '', '', '', - '', - '', + '', + '', '', '', '', @@ -301,7 +301,7 @@ define([ '', '', '', - '', + '', '', '', '', @@ -674,16 +674,19 @@ define([ $('tr.edit', this.el)[mode.isEdit?'show':'hide'](); $('tr.autosave', this.el)[mode.isEdit && (mode.canChangeCoAuthoring || !fast_coauth) ? 'show' : 'hide'](); $('tr.forcesave', this.el)[mode.canForcesave ? 'show' : 'hide'](); + $('tr.editsave',this.el)[mode.isEdit || mode.canForcesave ? 'show' : 'hide'](); if (this.mode.isDesktopApp && this.mode.isOffline) { this.chAutosave.setCaption(this.strAutoRecover); } /** coauthoring begin **/ + $('tr.collaboration', this.el)[mode.isEdit && mode.canCoAuthoring || mode.canViewReview ? 'show' : 'hide'](); $('tr.coauth', this.el)[mode.isEdit && mode.canCoAuthoring ? 'show' : 'hide'](); $('tr.coauth.changes-mode', this.el)[mode.isEdit && !mode.isOffline && mode.canCoAuthoring && mode.canChangeCoAuthoring ? 'show' : 'hide'](); $('tr.coauth.changes-show', this.el)[mode.isEdit && !mode.isOffline && mode.canCoAuthoring ? 'show' : 'hide'](); $('tr.view-review', this.el)[mode.canViewReview ? 'show' : 'hide'](); $('tr.spellcheck', this.el)[mode.isEdit && Common.UI.FeaturesManager.canChange('spellcheck') ? 'show' : 'hide'](); $('tr.comments', this.el)[mode.canCoAuthoring ? 'show' : 'hide'](); + /** coauthoring end **/ $('tr.macros', this.el)[(mode.customization && mode.customization.macros===false) ? 'hide' : 'show']();