@samitouri / QOSami-HFS / commits / 5ffb352c

better english

Massimo Melina committed Sep 26, 2025 at 09:56 UTC 5ffb352c338f192884e01dc4916993257c08cf59
1 file changed +6 -2
admin/src/FileForm.ts
+6 -2
@@ -155,8 +155,12 @@ export default function FileForm({ file, addToBar, statusApi, accounts, saved }:
155 fields: [
156 isRoot ? h(Alert, { severity: 'info' }, "This is Home, the root of your shared files. Options set here will be applied to all files.")
157 : isDir && hasSource && h(Alert, { severity: 'info' }, `To set permissions on individual items in folder, add them by clicking Add button, and then "from disk"`),
158 - !isRoot && { k: 'name', required: true, xl: true, helperText: hasSource && "You can decide a name that's different from the one on your disk",
159 - end: nameFromSource && !nameIsDerivedFromSource && h(Btn, { icon: RestartAlt, title: "Reset", onClick: () => setValues({ ...values, name: nameFromSource }) }),
158 + !isRoot && {
159 + k: 'name', required: true, xl: true, helperText: hasSource && "You can decide a name that's different from the one on your disk",
160 + end: nameFromSource && !nameIsDerivedFromSource && h(Btn, {
161 + icon: RestartAlt, title: "Reset to same name on disk",
162 + onClick: () => setValues({ ...values, name: nameFromSource })
163 + }),
164 },
165 isLink ? { k: 'url', label: "URL", lg: 12, required: true }
166 : { k: 'source', label: "Disk source", xl: true, comp: FileField, files: isUnknown || !isDir, folders: isUnknown || isDir,