mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
client: Fix duplicate items in language selection
This commit is contained in:
parent
c204b31cda
commit
115c2576cf
@ -29,6 +29,8 @@ export default class LocalizationOptions extends OptionsWidget {
|
|||||||
|
|
||||||
async optionsLoaded(options) {
|
async optionsLoaded(options) {
|
||||||
const availableLocales = await server.get("options/locales");
|
const availableLocales = await server.get("options/locales");
|
||||||
|
this.$localeSelect.empty();
|
||||||
|
|
||||||
for (const locale of availableLocales) {
|
for (const locale of availableLocales) {
|
||||||
this.$localeSelect.append($("<option>")
|
this.$localeSelect.append($("<option>")
|
||||||
.attr("value", locale.id)
|
.attr("value", locale.id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user