mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Remove useless "disable reload" feature
This commit is contained in:
parent
b15178ce46
commit
10143cf48f
6 changed files with 6 additions and 16 deletions
|
|
@ -7,7 +7,6 @@ export const Capa = {
|
||||||
OpenPGP: 'OPEN_PGP',
|
OpenPGP: 'OPEN_PGP',
|
||||||
Prefetch: 'PREFETCH',
|
Prefetch: 'PREFETCH',
|
||||||
Contacts: 'CONTACTS',
|
Contacts: 'CONTACTS',
|
||||||
Reload: 'RELOAD',
|
|
||||||
Search: 'SEARCH',
|
Search: 'SEARCH',
|
||||||
SearchAdv: 'SEARCH_ADV',
|
SearchAdv: 'SEARCH_ADV',
|
||||||
MessageActions: 'MESSAGE_ACTIONS',
|
MessageActions: 'MESSAGE_ACTIONS',
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,6 @@ export class MessageListMailBoxUserView extends AbstractViewRight {
|
||||||
|
|
||||||
this.newMoveToFolder = !!SettingsGet('NewMoveToFolder');
|
this.newMoveToFolder = !!SettingsGet('NewMoveToFolder');
|
||||||
|
|
||||||
this.allowReload = Settings.capa(Capa.Reload);
|
|
||||||
this.allowSearch = Settings.capa(Capa.Search);
|
this.allowSearch = Settings.capa(Capa.Search);
|
||||||
this.allowSearchAdv = Settings.capa(Capa.SearchAdv);
|
this.allowSearchAdv = Settings.capa(Capa.SearchAdv);
|
||||||
this.allowDangerousActions = Settings.capa(Capa.DangerousActions);
|
this.allowDangerousActions = Settings.capa(Capa.DangerousActions);
|
||||||
|
|
@ -770,13 +769,11 @@ export class MessageListMailBoxUserView extends AbstractViewRight {
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (Settings.capa(Capa.Reload)) {
|
// check mail
|
||||||
// check mail
|
shortcuts.add('r', 'meta', [Scope.FolderList, Scope.MessageList, Scope.MessageView], () => {
|
||||||
shortcuts.add('r', 'meta', [Scope.FolderList, Scope.MessageList, Scope.MessageView], () => {
|
this.reloadCommand();
|
||||||
this.reloadCommand();
|
return false;
|
||||||
return false;
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// check all
|
// check all
|
||||||
shortcuts.add('a', 'meta', Scope.MessageList, () => {
|
shortcuts.add('a', 'meta', Scope.MessageList, () => {
|
||||||
|
|
|
||||||
|
|
@ -1909,10 +1909,6 @@ class Actions
|
||||||
$aResult[] = Enumerations\Capa::DANGEROUS_ACTIONS;
|
$aResult[] = Enumerations\Capa::DANGEROUS_ACTIONS;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($oConfig->Get('capa', 'reload', true)) {
|
|
||||||
$aResult[] = Enumerations\Capa::RELOAD;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($oConfig->Get('capa', 'quota', true)) {
|
if ($oConfig->Get('capa', 'quota', true)) {
|
||||||
$aResult[] = Enumerations\Capa::QUOTA;
|
$aResult[] = Enumerations\Capa::QUOTA;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -190,7 +190,6 @@ class Application extends \RainLoop\Config\AbstractConfig
|
||||||
'settings' => array(true),
|
'settings' => array(true),
|
||||||
'quota' => array(true),
|
'quota' => array(true),
|
||||||
'help' => array(true),
|
'help' => array(true),
|
||||||
'reload' => array(true),
|
|
||||||
'search' => array(true),
|
'search' => array(true),
|
||||||
'search_adv' => array(true),
|
'search_adv' => array(true),
|
||||||
'dangerous_actions' => array(true),
|
'dangerous_actions' => array(true),
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@ class Capa
|
||||||
const ADDITIONAL_ACCOUNTS = 'ADDITIONAL_ACCOUNTS';
|
const ADDITIONAL_ACCOUNTS = 'ADDITIONAL_ACCOUNTS';
|
||||||
const IDENTITIES = 'IDENTITIES';
|
const IDENTITIES = 'IDENTITIES';
|
||||||
const CONTACTS = 'CONTACTS';
|
const CONTACTS = 'CONTACTS';
|
||||||
const RELOAD = 'RELOAD';
|
|
||||||
const SEARCH = 'SEARCH';
|
const SEARCH = 'SEARCH';
|
||||||
const SEARCH_ADV = 'SEARCH_ADV';
|
const SEARCH_ADV = 'SEARCH_ADV';
|
||||||
const SETTINGS = 'SETTINGS';
|
const SETTINGS = 'SETTINGS';
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
<a class="btn buttonCompose show-mobile" data-bind="click: composeClick, css: {'btn-warning': composeInEdit, 'btn-success': !composeInEdit()}, visible: mobileCheckedStateHide()" data-i18n="[title]FOLDER_LIST/BUTTON_NEW_MESSAGE">
|
<a class="btn buttonCompose show-mobile" data-bind="click: composeClick, css: {'btn-warning': composeInEdit, 'btn-success': !composeInEdit()}, visible: mobileCheckedStateHide()" data-i18n="[title]FOLDER_LIST/BUTTON_NEW_MESSAGE">
|
||||||
<i class="icon-paper-plane"></i>
|
<i class="icon-paper-plane"></i>
|
||||||
</a>
|
</a>
|
||||||
<a class="btn" data-bind="command: reloadCommand, visible: allowReload && mobileCheckedStateHide()" data-i18n="[title]MESSAGE_LIST/BUTTON_RELOAD">
|
<a class="btn" data-bind="command: reloadCommand, visible: mobileCheckedStateHide()" data-i18n="[title]MESSAGE_LIST/BUTTON_RELOAD">
|
||||||
<i class="icon-spinner not-animated"></i>
|
<i class="icon-spinner not-animated"></i>
|
||||||
</a>
|
</a>
|
||||||
<!-- ko if: !newMoveToFolder -->
|
<!-- ko if: !newMoveToFolder -->
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue