Bugfix and cleanup rollup based javascript even more

This commit is contained in:
djmaze 2021-01-27 10:59:15 +01:00
parent 7ccc44616d
commit 3983932bc0
17 changed files with 84 additions and 169 deletions

View file

@ -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();
}
}

View file

@ -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';