admin/internet: show last acme error
Massimo Melina committed
Sep 13, 2025 at 16:43 UTC
e4e01b7c51eed928b7d215ccb4baffb48b1cd2f4
1 file changed
+3
-1
admin/src/InternetPage.ts
+3
-1
@@ -175,7 +175,7 @@ export default function InternetPage({ setTitleSide }: PageProps) {
175
const cert = useApiEx('get_cert')
176
useEffect(() => { apiCall('get_config', { only: ['acme_domain', 'acme_renew'] }).then(setValues) } , [])
177
const [saving, setSaving] = useState(false)
178
- if (!status || !values) return h(CircularProgress)
178
+ if (!values) return h(CircularProgress)
179
const { https } = status.data ||{}
180
const disabled = https?.port === PORT_DISABLED
181
const error = https?.error
@@ -221,6 +221,7 @@ export default function InternetPage({ setTitleSide }: PageProps) {
221
comp: BoolField,
222
disabled: !values.acme_domain
223
},
224
+ with_(status.data.acmeRenewError, x => x && h(Alert, { severity: 'error' }, x)),
225
],
226
save: {
227
children: "Request",
@@ -240,6 +241,7 @@ export default function InternetPage({ setTitleSide }: PageProps) {
241
await notEnabled()
242
cert.reload()
243
}, alertDialog)
244
+ .finally(status.reload)
245
}
246
},
247
})