ux: admin/fs: renamed "Who can list" in "Who can access folder"

Massimo Melina committed May 26, 2024 at 21:45 UTC 255624521f6319c0e3aa1ea03fe5ef93dc9e19fd
1 file changed +2 -2
admin/src/FileForm.ts
+2 -2
@@ -163,7 +163,7 @@ export default function FileForm({ file, addToBar, statusApi, accounts, saved }:
163 perm('can_read', "Who can see but not download will be asked to login"),
164 perm('can_see', "If you can't see, you may still download with a direct link"),
165 perm('can_archive', "Should this be included when user downloads as ZIP", { lg: isDir ? true : 12 }),
166 - perm('can_list', "Permission to see content of folders", { contentText: "subfolders" }),
166 + perm('can_list', undefined, { contentText: "subfolders" }),
167 perm('can_delete', [needSourceWarning, "Those who can delete can also rename and cut/move"]),
168 perm('can_upload', needSourceWarning, { contentText: "subfolders" }),
169 showSize && { k: 'size', comp: DisplayField, sm: 6, lg: 4, toField: formatBytes },
@@ -208,7 +208,7 @@ export default function FileForm({ file, addToBar, statusApi, accounts, saved }:
208 }
209
210 function perm2word(perm: string) {
211 - return xlate(perm.split('_')[1], { read: 'download', archive: 'zip' })
211 + return xlate(perm.split('_')[1], { read: 'download', archive: 'zip', list: 'access folder' })
212 }
213
214 interface WhoFieldProps extends FieldProps<Who | undefined> {