mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Added "hide_dangerous_actions" setting
This commit is contained in:
parent
d79947259b
commit
4569190691
6 changed files with 10 additions and 4 deletions
|
|
@ -12,6 +12,8 @@ function MailBoxMessageListViewModel()
|
||||||
this.bPrefetch = false;
|
this.bPrefetch = false;
|
||||||
this.emptySubjectValue = '';
|
this.emptySubjectValue = '';
|
||||||
|
|
||||||
|
this.hideDangerousActions = !!RL.settingsGet('HideDangerousActions');
|
||||||
|
|
||||||
var oData = RL.data();
|
var oData = RL.data();
|
||||||
|
|
||||||
this.popupVisibility = RL.popupVisibility;
|
this.popupVisibility = RL.popupVisibility;
|
||||||
|
|
|
||||||
|
|
@ -953,6 +953,7 @@ class Actions
|
||||||
'AllowAdminPanel' => (bool) $oConfig->Get('security', 'allow_admin_panel', true),
|
'AllowAdminPanel' => (bool) $oConfig->Get('security', 'allow_admin_panel', true),
|
||||||
'AllowHtmlEditorSourceButton' => (bool) $oConfig->Get('labs', 'allow_html_editor_source_button', false),
|
'AllowHtmlEditorSourceButton' => (bool) $oConfig->Get('labs', 'allow_html_editor_source_button', false),
|
||||||
'UseRsaEncryption' => (bool) $oConfig->Get('security', 'use_rsa_encryption', 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', ''),
|
'CustomLoginLink' => $oConfig->Get('labs', 'custom_login_link', ''),
|
||||||
'CustomLogoutLink' => $oConfig->Get('labs', 'custom_logout_link', ''),
|
'CustomLogoutLink' => $oConfig->Get('labs', 'custom_logout_link', ''),
|
||||||
'LoginDefaultDomain' => $oConfig->Get('login', 'default_domain', ''),
|
'LoginDefaultDomain' => $oConfig->Get('login', 'default_domain', ''),
|
||||||
|
|
|
||||||
|
|
@ -227,6 +227,7 @@ Enables caching in the system'),
|
||||||
'login_fault_delay' => array(1),
|
'login_fault_delay' => array(1),
|
||||||
'log_ajax_response_write_limit' => array(300),
|
'log_ajax_response_write_limit' => array(300),
|
||||||
'allow_html_editor_source_button' => array(false),
|
'allow_html_editor_source_button' => array(false),
|
||||||
|
'hide_dangerous_actions' => array(false),
|
||||||
'use_app_debug_js' => array(false),
|
'use_app_debug_js' => array(false),
|
||||||
'use_app_debug_css' => array(false),
|
'use_app_debug_css' => array(false),
|
||||||
'use_imap_sort' => array(true),
|
'use_imap_sort' => array(true),
|
||||||
|
|
|
||||||
|
|
@ -92,15 +92,15 @@
|
||||||
<span class="i18n" data-i18n-text="MESSAGE_LIST/BUTTON_MULTY_FORWARD"></span>
|
<span class="i18n" data-i18n-text="MESSAGE_LIST/BUTTON_MULTY_FORWARD"></span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="divider" role="presentation"></li>
|
<li class="divider" role="presentation" data-bind="visible: !hideDangerousActions"></li>
|
||||||
<li class="e-item" role="presentation" data-bind="command: deleteWithoutMoveCommand">
|
<li class="e-item" role="presentation" data-bind="visible: !hideDangerousActions, command: deleteWithoutMoveCommand">
|
||||||
<a class="e-link menuitem" href="#" tabindex="-1">
|
<a class="e-link menuitem" href="#" tabindex="-1">
|
||||||
<i class="icon-trash"></i>
|
<i class="icon-trash"></i>
|
||||||
|
|
||||||
<span class="i18n" data-i18n-text="MESSAGE_LIST/BUTTON_DELETE_WITHOUT_MOVE"></span>
|
<span class="i18n" data-i18n-text="MESSAGE_LIST/BUTTON_DELETE_WITHOUT_MOVE"></span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</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">
|
<a class="e-link menuitem" href="#" tabindex="-1">
|
||||||
<i class="icon-fire"></i>
|
<i class="icon-fire"></i>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13420,6 +13420,8 @@ function MailBoxMessageListViewModel()
|
||||||
this.bPrefetch = false;
|
this.bPrefetch = false;
|
||||||
this.emptySubjectValue = '';
|
this.emptySubjectValue = '';
|
||||||
|
|
||||||
|
this.hideDangerousActions = !!RL.settingsGet('HideDangerousActions');
|
||||||
|
|
||||||
var oData = RL.data();
|
var oData = RL.data();
|
||||||
|
|
||||||
this.popupVisibility = RL.popupVisibility;
|
this.popupVisibility = RL.popupVisibility;
|
||||||
|
|
|
||||||
2
rainloop/v/0.0.0/static/js/app.min.js
vendored
2
rainloop/v/0.0.0/static/js/app.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue