ux: admin/fs: hint

Massimo Melina committed Nov 4, 2023 at 10:42 UTC 474a6656b9f2841255823c0c08f30b2ed0277ef1
2 files changed +3 -2
admin/src/FileForm.ts
+2 -1
@@ -125,7 +125,8 @@ export default function FileForm({ file, anyMask, addToBar, statusApi }: FileFor
125 }
126 },
127 fields: [
128 - isRoot ? h(Alert,{ severity: 'info' }, "This is Home, the root of your shared files. Options set here will be applied to all files.")
128 + isDir && hasSource && h(Alert, { severity: 'info' }, `To set permissions on individual items in folder, add them by clicking Add button, and then "from disk"`),
129 + isRoot ? h(Alert, { severity: 'info' }, "This is Home, the root of your shared files. Options set here will be applied to all files.")
130 : { k: 'name', required: true, xl: true, helperText: hasSource && "You can decide a name that's different from the one on your disk" },
131 isLink ? { k: 'url', label: "URL", lg: 12, required: true }
132 : { k: 'source', label: "Load content from disk", xl: true, comp: FileField, files: !isDir, folders: isDir,
admin/src/addFiles.ts
+1 -1
@@ -18,7 +18,7 @@ export default function addFiles() {
18 return h(Fragment, {},
19 h(Box, { sx:{ typography: 'body1', px: 1, py: 2 } },
20 "Selected elements will be added under ",
21 - parent.isRoot ? h('i', {}, 'Home') : parent.id
21 + parent.isRoot ? h('i', {}, "Home") : decodeURI(parent.id)
22 ),
23 h(FilePicker, {
24 from: parent.source,