Added "hide_dangerous_actions" setting

This commit is contained in:
RainLoop Team 2014-08-12 19:19:39 +04:00
parent d79947259b
commit 4569190691
6 changed files with 10 additions and 4 deletions

View file

@ -12,6 +12,8 @@ function MailBoxMessageListViewModel()
this.bPrefetch = false;
this.emptySubjectValue = '';
this.hideDangerousActions = !!RL.settingsGet('HideDangerousActions');
var oData = RL.data();
this.popupVisibility = RL.popupVisibility;

View file

@ -953,6 +953,7 @@ class Actions
'AllowAdminPanel' => (bool) $oConfig->Get('security', 'allow_admin_panel', true),
'AllowHtmlEditorSourceButton' => (bool) $oConfig->Get('labs', 'allow_html_editor_source_button', false),
'UseRsaEncryption' => (bool) $oConfig->Get('security', 'use_rsa_encryption', false),
'HideDangerousActions' => $oConfig->Get('labs', 'hide_dangerous_actions', false),
'CustomLoginLink' => $oConfig->Get('labs', 'custom_login_link', ''),
'CustomLogoutLink' => $oConfig->Get('labs', 'custom_logout_link', ''),
'LoginDefaultDomain' => $oConfig->Get('login', 'default_domain', ''),

View file

@ -227,6 +227,7 @@ Enables caching in the system'),
'login_fault_delay' => array(1),
'log_ajax_response_write_limit' => array(300),
'allow_html_editor_source_button' => array(false),
'hide_dangerous_actions' => array(false),
'use_app_debug_js' => array(false),
'use_app_debug_css' => array(false),
'use_imap_sort' => array(true),

View file

@ -92,15 +92,15 @@
<span class="i18n" data-i18n-text="MESSAGE_LIST/BUTTON_MULTY_FORWARD"></span>
</a>
</li>
<li class="divider" role="presentation"></li>
<li class="e-item" role="presentation" data-bind="command: deleteWithoutMoveCommand">
<li class="divider" role="presentation" data-bind="visible: !hideDangerousActions"></li>
<li class="e-item" role="presentation" data-bind="visible: !hideDangerousActions, command: deleteWithoutMoveCommand">
<a class="e-link menuitem" href="#" tabindex="-1">
<i class="icon-trash"></i>
&nbsp;&nbsp;
<span class="i18n" data-i18n-text="MESSAGE_LIST/BUTTON_DELETE_WITHOUT_MOVE"></span>
</a>
</li>
<li class="e-item" role="presentation" data-bind="command: clearCommand">
<li class="e-item" role="presentation" data-bind="visible: !hideDangerousActions, command: clearCommand">
<a class="e-link menuitem" href="#" tabindex="-1">
<i class="icon-fire"></i>
&nbsp;&nbsp;

View file

@ -13420,6 +13420,8 @@ function MailBoxMessageListViewModel()
this.bPrefetch = false;
this.emptySubjectValue = '';
this.hideDangerousActions = !!RL.settingsGet('HideDangerousActions');
var oData = RL.data();
this.popupVisibility = RL.popupVisibility;

File diff suppressed because one or more lines are too long