[DE] Add parameter customization->review->hideReviewDisplay for hiding display mode button

This commit is contained in:
Julia Radzhabova 2021-07-19 13:42:03 +03:00
parent 311a361f63
commit 630799d928
2 changed files with 4 additions and 1 deletions

View file

@ -135,6 +135,9 @@
request: bool (default: true), // enable set name
label: string (default: "Guest") // postfix for user name
},
review: {
hideReviewDisplay: false // hide button Review mode
},
chat: true,
comments: true,
zoom: 100,

View file

@ -277,7 +277,7 @@ define([
caption: this.txtNext
});
if (!this.appConfig.isRestrictedEdit) {// hide Display mode option for fillForms and commenting mode
if (!this.appConfig.isRestrictedEdit && !(this.appConfig.customization && this.appConfig.customization.review && this.appConfig.customization.review.hideReviewDisplay)) {// hide Display mode option for fillForms and commenting mode
var menuTemplate = _.template('<a id="<%= id %>" tabindex="-1" type="menuitem"><div><%= caption %></div>' +
'<% if (options.description !== null) { %><label style="display: block;color: #a5a5a5;cursor: pointer;white-space: normal;"><%= options.description %></label>' +
'<% } %></a>');