From 6f0c48fc5e8cb79f569db1190591d41758dc636d Mon Sep 17 00:00:00 2001 From: Julia Svinareva Date: Wed, 22 May 2019 09:59:21 +0300 Subject: [PATCH] [DE mobile] Add check canReview --- apps/documenteditor/mobile/app/controller/Collaboration.js | 4 ++++ apps/documenteditor/mobile/app/controller/Settings.js | 3 +++ 2 files changed, 7 insertions(+) diff --git a/apps/documenteditor/mobile/app/controller/Collaboration.js b/apps/documenteditor/mobile/app/controller/Collaboration.js index 35c1a6cdc..bccdf31c6 100644 --- a/apps/documenteditor/mobile/app/controller/Collaboration.js +++ b/apps/documenteditor/mobile/app/controller/Collaboration.js @@ -165,6 +165,10 @@ define([ } else if('#change-view' == pageId) { me.initChange(); Common.Utils.addScrollIfNeed('.page[data-page=change-view]', '.page[data-page=change-view] .page-content'); + } else { + if(!this.appConfig.canReview) { + $('#reviewing-settings').hide(); + } } }, diff --git a/apps/documenteditor/mobile/app/controller/Settings.js b/apps/documenteditor/mobile/app/controller/Settings.js index bf6192291..c9dce5c1d 100644 --- a/apps/documenteditor/mobile/app/controller/Settings.js +++ b/apps/documenteditor/mobile/app/controller/Settings.js @@ -253,6 +253,9 @@ define([ if(_stateDisplayMode == "Final" || _stateDisplayMode == "Original") { $('#settings-document').addClass('disabled'); } + if(!_canReview) { + $('#settings-collaboration').hide(); + } } },