admin/options: help link on certificate field

Massimo Melina committed May 6, 2023 at 12:39 UTC ee9d09f4be4175ac5e5536b510199d49ed6f9b6a
1 file changed +2 -4
admin/src/OptionsPage.ts
+2 -4
@@ -103,10 +103,8 @@ export default function OptionsPage() {
103 helperText: "Not applied to localhost"
104 },
105 httpsEnabled && { k: 'cert', comp: FileField, md: 4, label: "HTTPS certificate file",
106 - ...with_(status?.https.error, e => isCertError(e) ? {
107 - error: true,
108 - helperText: [e, ' - ', h(Link, { key: 'fix', sx: { cursor: 'pointer' }, onClick: makeCertAndSave }, "make one")]
109 - } : null)
106 + helperText: wikiLink('HTTPS#certificate', "What is this?"),
107 + error: with_(status?.https.error, e => isCertError(e) && [e, ' - ', h(Link, { key: 'fix', sx: { cursor: 'pointer' }, onClick: makeCertAndSave }, "make one")]),
108 },
109 httpsEnabled && { k: 'private_key', comp: FileField, md: 4, label: "HTTPS private key file",
110 ...with_(status?.https.error, e => isKeyError(e) ? { error: true, helperText: e } : null)