fix: use $derived for networkFsOptions to support i18n reactivity
This commit is contained in:
1 parent
aa98b4d411
commit
764e55d1e8
1 file changed
+3
-3
@@ -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(() => {
|
||||
|
||||
Reference in new issue
Block a user