mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 15:45:55 +08:00
No need to disable help screen
This commit is contained in:
parent
10143cf48f
commit
2227e8ca21
|
@ -13,7 +13,6 @@ export const Capa = {
|
||||||
AttachmentsActions: 'ATTACHMENTS_ACTIONS',
|
AttachmentsActions: 'ATTACHMENTS_ACTIONS',
|
||||||
DangerousActions: 'DANGEROUS_ACTIONS',
|
DangerousActions: 'DANGEROUS_ACTIONS',
|
||||||
Settings: 'SETTINGS',
|
Settings: 'SETTINGS',
|
||||||
Help: 'HELP',
|
|
||||||
Themes: 'THEMES',
|
Themes: 'THEMES',
|
||||||
UserBackground: 'USER_BACKGROUND',
|
UserBackground: 'USER_BACKGROUND',
|
||||||
Sieve: 'SIEVE',
|
Sieve: 'SIEVE',
|
||||||
|
|
|
@ -22,7 +22,6 @@ export class AbstractSystemDropDownUserView extends AbstractViewRight {
|
||||||
|
|
||||||
this.allowAccounts = Settings.capa(Capa.AdditionalAccounts);
|
this.allowAccounts = Settings.capa(Capa.AdditionalAccounts);
|
||||||
this.allowSettings = Settings.capa(Capa.Settings);
|
this.allowSettings = Settings.capa(Capa.Settings);
|
||||||
this.allowHelp = Settings.capa(Capa.Help);
|
|
||||||
|
|
||||||
this.accountEmail = AccountUserStore.email;
|
this.accountEmail = AccountUserStore.email;
|
||||||
|
|
||||||
|
@ -63,7 +62,7 @@ export class AbstractSystemDropDownUserView extends AbstractViewRight {
|
||||||
}
|
}
|
||||||
|
|
||||||
settingsHelp() {
|
settingsHelp() {
|
||||||
this.allowHelp && showScreenPopup(KeyboardShortcutsHelpPopupView);
|
showScreenPopup(KeyboardShortcutsHelpPopupView);
|
||||||
}
|
}
|
||||||
|
|
||||||
addAccountClick() {
|
addAccountClick() {
|
||||||
|
|
|
@ -1941,10 +1941,6 @@ class Actions
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($oConfig->Get('capa', 'help', true)) {
|
|
||||||
$aResult[] = Enumerations\Capa::HELP;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($oConfig->Get('capa', 'attachments_actions', false)) {
|
if ($oConfig->Get('capa', 'attachments_actions', false)) {
|
||||||
$aResult[] = Enumerations\Capa::ATTACHMENTS_ACTIONS;
|
$aResult[] = Enumerations\Capa::ATTACHMENTS_ACTIONS;
|
||||||
}
|
}
|
||||||
|
|
|
@ -189,7 +189,6 @@ class Application extends \RainLoop\Config\AbstractConfig
|
||||||
'contacts' => array(true),
|
'contacts' => array(true),
|
||||||
'settings' => array(true),
|
'settings' => array(true),
|
||||||
'quota' => array(true),
|
'quota' => array(true),
|
||||||
'help' => array(true),
|
|
||||||
'search' => array(true),
|
'search' => array(true),
|
||||||
'search_adv' => array(true),
|
'search_adv' => array(true),
|
||||||
'dangerous_actions' => array(true),
|
'dangerous_actions' => array(true),
|
||||||
|
|
|
@ -17,7 +17,6 @@ class Capa
|
||||||
const SEARCH_ADV = 'SEARCH_ADV';
|
const SEARCH_ADV = 'SEARCH_ADV';
|
||||||
const SETTINGS = 'SETTINGS';
|
const SETTINGS = 'SETTINGS';
|
||||||
const QUOTA = 'QUOTA';
|
const QUOTA = 'QUOTA';
|
||||||
const HELP = 'HELP';
|
|
||||||
const TEMPLATES = 'TEMPLATES';
|
const TEMPLATES = 'TEMPLATES';
|
||||||
const MESSAGE_ACTIONS = 'MESSAGE_ACTIONS';
|
const MESSAGE_ACTIONS = 'MESSAGE_ACTIONS';
|
||||||
const ATTACHMENTS_ACTIONS = 'ATTACHMENTS_ACTIONS';
|
const ATTACHMENTS_ACTIONS = 'ATTACHMENTS_ACTIONS';
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
<span data-i18n="TOP_TOOLBAR/BUTTON_SETTINGS"></span>
|
<span data-i18n="TOP_TOOLBAR/BUTTON_SETTINGS"></span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="e-item" role="presentation" data-bind="visible: allowHelp">
|
<li class="e-item" role="presentation">
|
||||||
<a class="e-link menuitem" href="#" tabindex="-1" data-bind="click: settingsHelp">
|
<a class="e-link menuitem" href="#" tabindex="-1" data-bind="click: settingsHelp">
|
||||||
<i class="icon-help"></i>
|
<i class="icon-help"></i>
|
||||||
<span data-i18n="TOP_TOOLBAR/BUTTON_HELP"></span>
|
<span data-i18n="TOP_TOOLBAR/BUTTON_HELP"></span>
|
||||||
|
|
Loading…
Reference in a new issue