diff --git a/dev/Styles/Animations.less b/dev/Styles/Animations.less index 20f28ce0f..8fd23b9e7 100644 --- a/dev/Styles/Animations.less +++ b/dev/Styles/Animations.less @@ -1,10 +1,10 @@ @keyframes login-form-shake { 0% {transform: translateX(0);} - 12.5% {transform: translateX(-6px) rotateY(-5deg)} - 37.5% {transform: translateX(5px) rotateY(4deg)} - 62.5% {transform: translateX(-3px) rotateY(-2deg)} - 87.5% {transform: translateX(2px) rotateY(1deg)} + 12.5% {transform: translateX(-6px)} + 37.5% {transform: translateX(5px)} + 62.5% {transform: translateX(-3px)} + 87.5% {transform: translateX(2px)} 100% {transform: translateX(0)} } diff --git a/dev/View/User/AbstractSystemDropDown.js b/dev/View/User/AbstractSystemDropDown.js index 06ce76fe2..96c9fb0fe 100644 --- a/dev/View/User/AbstractSystemDropDown.js +++ b/dev/View/User/AbstractSystemDropDown.js @@ -20,6 +20,7 @@ export class AbstractSystemDropDownUserView extends AbstractViewRight { constructor(name) { super(name, 'SystemDropDown'); + this.allowAccounts = Settings.capa(Capa.AdditionalAccounts); this.allowSettings = Settings.capa(Capa.Settings); this.allowHelp = Settings.capa(Capa.Help); @@ -31,14 +32,11 @@ export class AbstractSystemDropDownUserView extends AbstractViewRight { this.addObservables({ currentAudio: '', - accountMenuDropdownTrigger: false, - capaAdditionalAccounts: Settings.capa(Capa.AdditionalAccounts) + accountMenuDropdownTrigger: false }); this.allowContacts = AppUserStore.allowContacts(); - this.addAccountClick = this.addAccountClick.bind(this); - addEventListener('audio.stop', () => this.currentAudio('')); addEventListener('audio.start', e => this.currentAudio(e.detail)); } @@ -61,27 +59,19 @@ export class AbstractSystemDropDownUserView extends AbstractViewRight { } settingsClick() { - if (Settings.capa(Capa.Settings)) { - rl.route.setHash(settings()); - } + this.allowSettings && rl.route.setHash(settings()); } settingsHelp() { - if (Settings.capa(Capa.Help)) { - showScreenPopup(KeyboardShortcutsHelpPopupView); - } + this.allowHelp && showScreenPopup(KeyboardShortcutsHelpPopupView); } addAccountClick() { - if (this.capaAdditionalAccounts()) { - showScreenPopup(AccountPopupView); - } + this.allowAccounts && showScreenPopup(AccountPopupView); } contactsClick() { - if (this.allowContacts) { - showScreenPopup(ContactsPopupView); - } + this.allowContacts && showScreenPopup(ContactsPopupView); } layoutDesktop() diff --git a/dev/View/User/Login.js b/dev/View/User/Login.js index d0e0e6467..3597e0482 100644 --- a/dev/View/User/Login.js +++ b/dev/View/User/Login.js @@ -99,7 +99,18 @@ class LoginUserView extends AbstractViewCenter { submitError: value => value || this.submitErrorAddidional(''), - signMeType: iValue => this.signMe(LoginSignMeType.DefaultOn === iValue) + signMeType: iValue => this.signMe(LoginSignMeType.DefaultOn === iValue), + + language: value => { + this.langRequest(true); + translatorReload(false, value).then( + () => { + this.langRequest(false); + this.bSendLanguage = true; + }, + () => this.langRequest(false) + ); + } }); if (SettingsGet('AdditionalLoginError') && !this.submitError()) { @@ -191,22 +202,6 @@ class LoginUserView extends AbstractViewCenter { this.signMeType(LoginSignMeType.Unused); break; } - - setTimeout(() => { - LanguageStore.language.subscribe((value) => { - this.langRequest(true); - - translatorReload(false, value).then( - () => { - this.langRequest(false); - this.bSendLanguage = true; - }, - () => { - this.langRequest(false); - } - ); - }); - }, 50); } submitForm() { diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/Config/Application.php b/snappymail/v/0.0.0/app/libraries/RainLoop/Config/Application.php index 50034c94d..5df147435 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/Config/Application.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/Config/Application.php @@ -165,8 +165,7 @@ class Application extends \RainLoop\Config\AbstractConfig 'hide_x_mailer_header' => array(true), 'admin_panel_host' => array(''), 'admin_panel_key' => array('admin'), - 'content_security_policy' => array(''), - 'core_install_access_domain' => array('') + 'content_security_policy' => array('') ), 'ssl' => array( diff --git a/snappymail/v/0.0.0/app/templates/Views/User/SystemDropDown.html b/snappymail/v/0.0.0/app/templates/Views/User/SystemDropDown.html index e2e912eb7..a9f27038c 100644 --- a/snappymail/v/0.0.0/app/templates/Views/User/SystemDropDown.html +++ b/snappymail/v/0.0.0/app/templates/Views/User/SystemDropDown.html @@ -40,7 +40,7 @@ -