@samitouri / QOSami-HFS / commits / 97ba1417

ux: admin/fs: 1 hint at a time

Massimo Melina committed Apr 15, 2024 at 09:42 UTC 97ba14173ee01d70da8f826a3e74339fd1855c44
1 file changed +2 -2
admin/src/FileForm.ts
+2 -2
@@ -141,9 +141,9 @@ export default function FileForm({ file, addToBar, statusApi, accounts, saved }:
141 }
142 },
143 fields: [
144 - isDir && hasSource && h(Alert, { severity: 'info' }, `To set permissions on individual items in folder, add them by clicking Add button, and then "from disk"`),
144 isRoot ? h(Alert, { severity: 'info' }, "This is Home, the root of your shared files. Options set here will be applied to all files.")
146 - : { k: 'name', required: true, xl: true, helperText: hasSource && "You can decide a name that's different from the one on your disk" },
145 + : isDir && hasSource && h(Alert, { severity: 'info' }, `To set permissions on individual items in folder, add them by clicking Add button, and then "from disk"`),
146 + !isRoot && { k: 'name', required: true, xl: true, helperText: hasSource && "You can decide a name that's different from the one on your disk" },
147 isLink ? { k: 'url', label: "URL", lg: 12, required: true }
148 : { k: 'source', label: "Load content from disk", xl: true, comp: FileField, files: isUnknown || !isDir, folders: isUnknown || isDir,
149 placeholder: "no",