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