From ba31091ddb5faa53445a15683bc1ef9ae78bf243 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 20 May 2024 14:24:18 +0300 Subject: [PATCH] [DE] Change license for hiding roles (customization option) --- apps/documenteditor/main/app/controller/FormsTab.js | 4 ++-- apps/documenteditor/main/app/view/FormSettings.js | 2 +- apps/documenteditor/main/app/view/FormsTab.js | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/documenteditor/main/app/controller/FormsTab.js b/apps/documenteditor/main/app/controller/FormsTab.js index 7fcf729d04..b43e9c0030 100644 --- a/apps/documenteditor/main/app/controller/FormsTab.js +++ b/apps/documenteditor/main/app/controller/FormsTab.js @@ -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; } diff --git a/apps/documenteditor/main/app/view/FormSettings.js b/apps/documenteditor/main/app/view/FormSettings.js index 76b8c9bb82..f69585cf1a 100644 --- a/apps/documenteditor/main/app/view/FormSettings.js +++ b/apps/documenteditor/main/app/view/FormSettings.js @@ -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() { diff --git a/apps/documenteditor/main/app/view/FormsTab.js b/apps/documenteditor/main/app/view/FormsTab.js index 5e4f17ecd8..617fac929f 100644 --- a/apps/documenteditor/main/app/view/FormsTab.js +++ b/apps/documenteditor/main/app/view/FormsTab.js @@ -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'));