[DE] Fix show review tab in view and fill form mode

This commit is contained in:
Julia Radzhabova 2021-02-09 17:34:52 +03:00
parent 6945c85c56
commit b707915c17

View file

@ -3070,7 +3070,7 @@ define([
var $panel = me.application.getController('Common.Controllers.ReviewChanges').createToolbarPanel(); var $panel = me.application.getController('Common.Controllers.ReviewChanges').createToolbarPanel();
if ( $panel ) { if ( $panel ) {
me.toolbar.addTab(tab, $panel, 5); me.toolbar.addTab(tab, $panel, 5);
me.toolbar.setVisible('review', config.isEdit || config.canViewReview || config.canCoAuthoring && config.canComments); me.toolbar.setVisible('review', config.isEdit || config.canCoAuthoring && config.canComments); // use config.canViewReview in review controller. set visible review tab in view mode only when asc_HaveRevisionsChanges
} }
if ( config.isEdit ) { if ( config.isEdit ) {