[DE] Change license for hiding roles (customization option)

This commit is contained in:
Julia Radzhabova
2024-05-20 14:24:18 +03:00
parent e3ebe95f3b
commit ba31091ddb
3 changed files with 7 additions and 7 deletions

View File

@ -559,7 +559,7 @@ define([
},
onRefreshRolesList: function(roles) {
if (!Common.UI.FeaturesManager.isFeatureEnabled('roles')) return;
if (!Common.UI.FeaturesManager.isFeatureEnabled('roles', true)) return;
if (!roles) {
var oform = this.api.asc_GetOForm();
@ -584,7 +584,7 @@ define([
},
showRolesList: function(callback) {
if (!Common.UI.FeaturesManager.isFeatureEnabled('roles')) {
if (!Common.UI.FeaturesManager.isFeatureEnabled('roles', true)) {
callback.call(this);
return;
}

View File

@ -112,7 +112,7 @@ define([
this.DefValueText = el.find('#form-txt-def-value').closest('tr');
this.DefValueDropDown = el.find('#form-combo-def-value').closest('tr');
!Common.UI.FeaturesManager.isFeatureEnabled('roles') && el.find('#form-combo-roles').closest('tr').hide();
!Common.UI.FeaturesManager.isFeatureEnabled('roles', true) && el.find('#form-combo-roles').closest('tr').hide();
},
createDelayedElements: function() {

View File

@ -411,7 +411,7 @@ define([
iconCls: 'toolbar__icon btn-ic-sharing',
lock: [ _set.previewReviewMode, _set.viewFormMode, _set.lostConnect, _set.disableOnStart, _set.docLockView, _set.docLockForms, _set.docLockComments, _set.viewMode],
caption: this.capBtnManager,
visible: Common.UI.FeaturesManager.isFeatureEnabled('roles'),
visible: Common.UI.FeaturesManager.isFeatureEnabled('roles', true),
dataHint: '1',
dataHintDirection: 'bottom',
dataHintOffset: 'small'
@ -489,8 +489,8 @@ define([
iconCls: 'toolbar__icon btn-big-sheet-view',
lock: [ _set.previewReviewMode, _set.formsNoRoles, _set.lostConnect, _set.disableOnStart, _set.docLockView, _set.docLockForms, _set.docLockComments, _set.viewMode],
caption: this.capBtnView,
split: Common.UI.FeaturesManager.isFeatureEnabled('roles'),
menu: Common.UI.FeaturesManager.isFeatureEnabled('roles') ? new Common.UI.Menu({
split: Common.UI.FeaturesManager.isFeatureEnabled('roles', true),
menu: Common.UI.FeaturesManager.isFeatureEnabled('roles', true) ? new Common.UI.Menu({
cls: 'menu-roles',
maxHeight: 270,
style: 'max-width: 400px;',
@ -722,7 +722,7 @@ define([
this.btnSubmit && this.btnSubmit.render($host.find('#slot-btn-form-submit'));
$host.find('.forms-buttons').show();
!Common.UI.FeaturesManager.isFeatureEnabled('roles') && this.btnManager.cmpEl.parents('.group').hide().prev('.separator').hide();
!Common.UI.FeaturesManager.isFeatureEnabled('roles', true) && this.btnManager.cmpEl.parents('.group').hide().prev('.separator').hide();
}
this.btnClear.render($host.find('#slot-btn-form-clear'));
this.btnPrevForm.render($host.find('#slot-btn-form-prev'));