mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Bugfix and cleanup rollup based javascript even more
This commit is contained in:
parent
7ccc44616d
commit
3983932bc0
17 changed files with 84 additions and 169 deletions
|
|
@ -33,7 +33,7 @@ class LanguagesPopupView extends AbstractViewPopup {
|
|||
|
||||
setLanguageSelection() {
|
||||
const currentLang = this.fLang ? ko.unwrap(this.fLang) : '';
|
||||
this.languages.forEach(item => item.selected(item.key === currentLang));
|
||||
this.languages().forEach(item => item.selected(item.key === currentLang));
|
||||
}
|
||||
|
||||
onBeforeShow() {
|
||||
|
|
@ -51,10 +51,7 @@ class LanguagesPopupView extends AbstractViewPopup {
|
|||
}
|
||||
|
||||
changeLanguage(lang) {
|
||||
if (this.fLang) {
|
||||
this.fLang(lang);
|
||||
}
|
||||
|
||||
this.fLang && this.fLang(lang);
|
||||
this.cancelCommand();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import { ClientSideKeyName } from 'Common/EnumsUser';
|
|||
import { getNotification, getNotificationFromResponse, reload as translatorReload, convertLangName } from 'Common/Translator';
|
||||
|
||||
import AppStore from 'Stores/User/App';
|
||||
import LanguageStore from 'Stores/Language';
|
||||
import { LanguageStore } from 'Stores/Language';
|
||||
|
||||
import * as Local from 'Storage/Client';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue