diff options
author | metamuffin <metamuffin@disroot.org> | 2024-04-01 17:34:04 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-04-01 17:34:04 +0200 |
commit | 976c8c7cc4a0ab859e3e785a9dbae0ab8057274c (patch) | |
tree | f1103f7336b1ba8af070487a0e3a06ffec1292ab /client-web/source/preferences/ui.ts | |
parent | 45529def628fd1562bef262312649b428bbdb0f7 (diff) | |
download | keks-meet-976c8c7cc4a0ab859e3e785a9dbae0ab8057274c.tar keks-meet-976c8c7cc4a0ab859e3e785a9dbae0ab8057274c.tar.bz2 keks-meet-976c8c7cc4a0ab859e3e785a9dbae0ab8057274c.tar.zst |
translate settings and to german
Diffstat (limited to 'client-web/source/preferences/ui.ts')
-rw-r--r-- | client-web/source/preferences/ui.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client-web/source/preferences/ui.ts b/client-web/source/preferences/ui.ts index 47f3a4b..1be4458 100644 --- a/client-web/source/preferences/ui.ts +++ b/client-web/source/preferences/ui.ts @@ -18,7 +18,6 @@ export function ui_preferences(): HTMLElement { if (decl.possible_values) { const sel = document.createElement("select") sel.id = id - sel.value = JSON.stringify(PREFS[key]) for (const v of decl.possible_values) { const opt = document.createElement("option") opt.value = opt.textContent = JSON.stringify(v ?? null) @@ -28,6 +27,7 @@ export function ui_preferences(): HTMLElement { change_pref(key, JSON.parse(sel.value) ?? undefined) } on_pref_changed(key, () => sel.value = JSON.stringify(PREFS[key] ?? null)) + sel.value = JSON.stringify(PREFS[key]) prim_control = sel } else if (typeof decl.type == "boolean") { const checkbox = document.createElement("input") @@ -79,7 +79,7 @@ export function ui_preferences(): HTMLElement { use_opt_ = use_opt; } - const label = e("label", { for: id }, decl.description ?? `[${key}]`) + const label = e("label", { for: id }, PO.setting_descs[key] ?? `[${key}]`) return e("tr", { class: "pref" }, e("td", {}, label), e("td", {}, use_opt_ ?? ""), e("td", {}, prim_control ?? "")) }) |