admin/files: helpful link on masks
Massimo Melina committed
May 26, 2023 at 10:36 UTC
c0253f3de8b4ffd6c8d5ca6b264f473cd1cbe239
1 file changed
+13
-2
admin/src/FileForm.ts
+13
-2
@@ -14,7 +14,18 @@ import {
14
StringField
15
} from '@hfs/mui-grid-form'
16
import { apiCall, useApiEx } from './api'
17
-import { basename, formatBytes, IconBtn, isEqualLax, modifiedSx, newDialog, objSameKeys, onlyTruthy, prefix } from './misc'
17
+import {
18
+ basename,
19
+ formatBytes,
20
+ IconBtn,
21
+ isEqualLax,
22
+ modifiedSx,
23
+ newDialog,
24
+ objSameKeys,
25
+ onlyTruthy,
26
+ prefix,
27
+ wikiLink
28
+} from './misc'
29
import { reloadVfs, VfsNode, VfsPerms, Who } from './VfsPage'
30
import md from './md'
31
import _ from 'lodash'
@@ -132,7 +143,7 @@ export default function FileForm({ file, anyMask, defaultPerms, addToBar, urls }
143
isDir && { k: 'masks', multiline: true, lg: true,
144
toField: yaml.stringify, fromField: v => v ? yaml.parse(v) : undefined,
145
sx: { '& textarea': { fontFamily: 'monospace' } },
135
- helperText: "Special field, leave empty unless you know what you are doing. YAML syntax." }
146
+ helperText: ["Special field, leave empty unless you know what you are doing. YAML syntax. ", wikiLink('Permissions', "(examples)")] }
147
]
148
})
149