Can configure network NAT settings from UI

This commit is contained in:
2024-01-09 21:57:18 +01:00
parent 71e22bc328
commit f82925dbcb
11 changed files with 446 additions and 11 deletions

View File

@ -11,6 +11,7 @@ import {
ListItemText,
Paper,
Tooltip,
Typography,
} from "@mui/material";
import { DHCPConfig, DHCPHost } from "../../api/NetworksApi";
import { ServerApi } from "../../api/ServerApi";
@ -54,6 +55,11 @@ export function NetDHCPHostReservations(p: {
</Grid>
))}
</Grid>
{p.dhcp.hosts.length === 0 && (
<Typography style={{ textAlign: "center" }}>
You have not set any DHCP host reservations.
</Typography>
)}
{p.editable && (
<Button onClick={addHost}>Add new host reservation</Button>
)}