Move DHCP component to a more logical location
This commit is contained in:
parent
fdd005a3ec
commit
baa0adf529
@ -14,11 +14,11 @@ import {
|
|||||||
import { DHCPConfig, DHCPHost } from "../../api/NetworksApi";
|
import { DHCPConfig, DHCPHost } from "../../api/NetworksApi";
|
||||||
import { ServerApi } from "../../api/ServerApi";
|
import { ServerApi } from "../../api/ServerApi";
|
||||||
import { useConfirm } from "../../hooks/providers/ConfirmDialogProvider";
|
import { useConfirm } from "../../hooks/providers/ConfirmDialogProvider";
|
||||||
import { IPInput } from "../forms/IPInput";
|
import { IPInput } from "./IPInput";
|
||||||
import { MACInput } from "../forms/MACInput";
|
import { MACInput } from "./MACInput";
|
||||||
import { TextInput } from "../forms/TextInput";
|
import { TextInput } from "./TextInput";
|
||||||
|
|
||||||
export function DHCPHostReservations(p: {
|
export function NetDHCPHostReservations(p: {
|
||||||
editable: boolean;
|
editable: boolean;
|
||||||
dhcp: DHCPConfig;
|
dhcp: DHCPConfig;
|
||||||
version: 4 | 6;
|
version: 4 | 6;
|
@ -13,7 +13,7 @@ import { IPInput } from "../forms/IPInput";
|
|||||||
import { ResAutostartInput } from "../forms/ResAutostartInput";
|
import { ResAutostartInput } from "../forms/ResAutostartInput";
|
||||||
import { SelectInput } from "../forms/SelectInput";
|
import { SelectInput } from "../forms/SelectInput";
|
||||||
import { TextInput } from "../forms/TextInput";
|
import { TextInput } from "../forms/TextInput";
|
||||||
import { DHCPHostReservations } from "./DHCPHostReservations";
|
import { NetDHCPHostReservations } from "../forms/NetDHCPHostReservations";
|
||||||
import { XMLAsyncWidget } from "../XMLWidget";
|
import { XMLAsyncWidget } from "../XMLWidget";
|
||||||
|
|
||||||
interface DetailsProps {
|
interface DetailsProps {
|
||||||
@ -374,7 +374,7 @@ function IPSection(p: {
|
|||||||
|
|
||||||
{p.config?.dhcp && (p.editable || p.config.dhcp.hosts.length > 0) && (
|
{p.config?.dhcp && (p.editable || p.config.dhcp.hosts.length > 0) && (
|
||||||
<EditSection title="DHCP hosts reservations">
|
<EditSection title="DHCP hosts reservations">
|
||||||
<DHCPHostReservations
|
<NetDHCPHostReservations
|
||||||
{...p}
|
{...p}
|
||||||
dhcp={p.config.dhcp}
|
dhcp={p.config.dhcp}
|
||||||
onChange={(d) => {
|
onChange={(d) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user