Skip to content

Commit

Permalink
ux: admin/fs: hint
Browse files Browse the repository at this point in the history
  • Loading branch information
rejetto committed Dec 6, 2023
1 parent dfd7eb3 commit 474a665
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion admin/src/FileForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ export default function FileForm({ file, anyMask, addToBar, statusApi }: FileFor
}
},
fields: [
isRoot ? h(Alert,{ severity: 'info' }, "This is Home, the root of your shared files. Options set here will be applied to all files.")
isDir && hasSource && h(Alert, { severity: 'info' }, `To set permissions on individual items in folder, add them by clicking Add button, and then "from disk"`),
isRoot ? h(Alert, { severity: 'info' }, "This is Home, the root of your shared files. Options set here will be applied to all files.")
: { k: 'name', required: true, xl: true, helperText: hasSource && "You can decide a name that's different from the one on your disk" },
isLink ? { k: 'url', label: "URL", lg: 12, required: true }
: { k: 'source', label: "Load content from disk", xl: true, comp: FileField, files: !isDir, folders: isDir,
Expand Down
2 changes: 1 addition & 1 deletion admin/src/addFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function addFiles() {
return h(Fragment, {},
h(Box, { sx:{ typography: 'body1', px: 1, py: 2 } },
"Selected elements will be added under ",
parent.isRoot ? h('i', {}, 'Home') : parent.id
parent.isRoot ? h('i', {}, "Home") : decodeURI(parent.id)
),
h(FilePicker, {
from: parent.source,
Expand Down

0 comments on commit 474a665

Please sign in to comment.