ux: clearer labels
Massimo Melina committed
Oct 2, 2023 at 14:08 UTC
d5b8edcc93d778d0d02d0706cf122704722bdd77
2 files changed
+3
-3
admin/src/FileForm.ts
+1
-1
@@ -108,7 +108,7 @@ export default function FileForm({ file, anyMask, defaultPerms, addToBar, status
108
: { k: 'name', required: true, helperText: hasSource && "You can decide a name that's different from the one on your disk" },
109
{ k: 'id', comp: LinkField, statusApi },
110
{ k: 'source', label: "Source on disk", comp: FileField, files: !isDir, folders: isDir, multiline: true,
111
- placeholder: "Not on disk, this is a virtual folder",
111
+ helperText: !values.source && "Not on disk, this is a virtual folder",
112
},
113
perm('can_read', "Who can see but not download will be asked to login"),
114
perm('can_see', "If you can't see, you may still download with a direct link"),
admin/src/InternetPage.ts
+2
-2
@@ -69,8 +69,8 @@ export default function InternetPage() {
69
},
70
fields: [
71
md("Generate certificate using [Let's Encrypt](https://letsencrypt.org)"),
72
- { k: 'acme_domain', label: "Certificate domain", sm: 6, required: true },
73
- { k: 'acme_email', label: "Certificate e-mail", sm: 6 },
72
+ { k: 'acme_domain', label: "Domain for certificate", sm: 6, required: true, helperText: "example: your.domain.com" },
73
+ { k: 'acme_email', label: "E-mail for certificate", sm: 6 },
74
{ k: 'acme_renew', label: "Automatic renew one month before expiration", comp: BoolField, disabled: !values.acme_domain },
75
],
76
save: {