[DE mobile] Add check canReview

This commit is contained in:
Julia Svinareva 2019-05-22 09:59:21 +03:00
parent 0d74c6d334
commit 6f0c48fc5e
2 changed files with 7 additions and 0 deletions

View file

@ -165,6 +165,10 @@ define([
} else if('#change-view' == pageId) { } else if('#change-view' == pageId) {
me.initChange(); me.initChange();
Common.Utils.addScrollIfNeed('.page[data-page=change-view]', '.page[data-page=change-view] .page-content'); Common.Utils.addScrollIfNeed('.page[data-page=change-view]', '.page[data-page=change-view] .page-content');
} else {
if(!this.appConfig.canReview) {
$('#reviewing-settings').hide();
}
} }
}, },

View file

@ -253,6 +253,9 @@ define([
if(_stateDisplayMode == "Final" || _stateDisplayMode == "Original") { if(_stateDisplayMode == "Final" || _stateDisplayMode == "Original") {
$('#settings-document').addClass('disabled'); $('#settings-document').addClass('disabled');
} }
if(!_canReview) {
$('#settings-collaboration').hide();
}
} }
}, },