mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 00:37:20 +08:00
[mobile] Display review for view mode
This commit is contained in:
@ -209,7 +209,10 @@ define([
|
||||
Common.Utils.addScrollIfNeed('.page[data-page=comments-view]', '.page[data-page=comments-view] .page-content');
|
||||
} else {
|
||||
if(editor === 'DE' && !this.appConfig.canReview) {
|
||||
$('#reviewing-settings').hide();
|
||||
this.canViewReview = me.api.asc_HaveRevisionsChanges(true);
|
||||
if (!this.canViewReview) {
|
||||
$('#reviewing-settings').hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -282,6 +285,11 @@ define([
|
||||
$('#settings-reject-all').removeClass('disabled');
|
||||
$('#settings-review').removeClass('disabled');
|
||||
}
|
||||
if (!this.appConfig.canReview) {
|
||||
$('#settings-review').hide();
|
||||
$('#settings-accept-all').hide();
|
||||
$('#settings-reject-all').hide();
|
||||
}
|
||||
},
|
||||
|
||||
onTrackChanges: function(e) {
|
||||
@ -384,6 +392,10 @@ define([
|
||||
$('#btn-prev-change').addClass('disabled');
|
||||
$('#btn-next-change').addClass('disabled');
|
||||
}
|
||||
if (!this.appConfig.canReview) {
|
||||
$('#btn-accept-change').addClass('disabled');
|
||||
$('#btn-reject-change').addClass('disabled');
|
||||
}
|
||||
},
|
||||
|
||||
onPrevChange: function() {
|
||||
|
||||
Reference in New Issue
Block a user