From 7e39bd78d7ef5e5abb993170f4b4e02334e05e48 Mon Sep 17 00:00:00 2001 From: wukko Date: Thu, 20 Jun 2024 19:19:57 +0600 Subject: [PATCH] web/settings: fix setting value name --- web/src/components/buttons/SettingsButton.svelte | 10 +++++----- web/src/components/save/Omnibox.svelte | 6 +++--- web/src/routes/settings/+page.svelte | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/web/src/components/buttons/SettingsButton.svelte b/web/src/components/buttons/SettingsButton.svelte index a0a29e12..bb2a6f13 100644 --- a/web/src/components/buttons/SettingsButton.svelte +++ b/web/src/components/buttons/SettingsButton.svelte @@ -3,7 +3,7 @@ generics=" Context extends Exclude, Id extends keyof CobaltSettings[Context], - Key extends CobaltSettings[Context][Id] + Value extends CobaltSettings[Context][Id] " > import settings, { updateSetting } from "$lib/settings"; @@ -11,20 +11,20 @@ export let settingContext: Context; export let settingId: Id; - export let settingKey: Key; + export let settingValue: Value; $: setting = $settings[settingContext][settingId]; - $: isSelected = setting === settingKey; + $: isSelected = setting === settingValue;