mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 05:29:20 +03:00
Small speedup/cleanup of some code
This commit is contained in:
parent
cca0fc15da
commit
4bcfc81830
5 changed files with 24 additions and 40 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue