From 764e55d1e8771fb6a584a2ce9489ff32c759ea68 Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Mon, 2 Feb 2026 16:17:18 -0600 Subject: [PATCH] fix: use $derived for networkFsOptions to support i18n reactivity --- src/lib/components/FolderSettingsModal.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/components/FolderSettingsModal.svelte b/src/lib/components/FolderSettingsModal.svelte index 465319cf1..98f047188 100644 --- a/src/lib/components/FolderSettingsModal.svelte +++ b/src/lib/components/FolderSettingsModal.svelte @@ -47,8 +47,8 @@ let accessible = $state(true); let checkingAccessibility = $state(false); - // Network filesystem options - const networkFsOptions = [ + // Network filesystem options (derived to support i18n reactivity) + const networkFsOptions = $derived([ { value: '', label: $t('library.networkFs.auto') }, { value: 'cifs', label: 'SMB/CIFS (Samba)' }, { value: 'nfs', label: 'NFS' }, @@ -58,7 +58,7 @@ { value: 'glusterfs', label: 'GlusterFS' }, { value: 'ceph', label: 'CephFS' }, { value: 'other', label: $t('library.networkFs.other') } - ]; + ]); // Reset form when modal opens $effect(() => {