admin/internet: show green router if "verify" is successful
Massimo Melina committed
May 1, 2026 at 00:43 UTC
93d679b757d65ee0ff478368afb63a49f3ddba39
1 file changed
+2
-2
admin/src/InternetPage.ts
+2
-2
@@ -320,10 +320,10 @@ export default function InternetPage({ setTitleSide }: PageProps) {
320
!direct && h(DataLine),
321
!direct && h(Device, {
322
name: "Router", icon: RouterTwoTone, ip: data?.gatewayIp,
323
- color: data?.mapped && (wrongMap ? 'warning' : 'success'),
323
+ color: checkResult ? 'success' : data?.mapped && (wrongMap ? 'warning' : 'success'),
324
below: mapping ? h(LinearProgress, { sx: { height: '1em' } })
325
: h(LinkBtn, { sx: { fontSize: 'smaller', display: 'block' }, onClick: configure },
326
- "port ", wrongMap ? 'is wrong' : data?.externalPort || "unknown"),
326
+ "port ", wrongMap ? "is wrong" : data?.externalPort || (checkResult ? "verified" : "unknown")),
327
}),
328
h(DataLine),
329
h(Device, { name: "Internet", icon: PublicTwoTone, ip: publicIps,