diff --git a/app/(main)/recursive-routes/page.tsx b/app/(main)/recursive-routes/page.tsx index db40873e..7e757ae4 100644 --- a/app/(main)/recursive-routes/page.tsx +++ b/app/(main)/recursive-routes/page.tsx @@ -7,7 +7,6 @@ import { PageHeader } from "@/components/page-header" import { RecursiveRoutesDataGrid, type RecursiveRouteGroup, - inferCountry, } from "@/components/data-grids/recursive-routes-data-grid" import { FormField, SectionTitle } from "@/components/form-kit" import { DataPageCard } from "@/components/data-page-card" @@ -47,7 +46,7 @@ interface GatewayOption { id: string name: string ip: string - status: "up" | "down" + status: "active" | "inactive" | "unknown" } const COUNTRY_OPTIONS = [ @@ -100,6 +99,7 @@ interface RouteForm { interface RouteEndpointForm { id: string + disabled: boolean gateway: string distance: number scope: number | null @@ -110,6 +110,7 @@ interface RouteEndpointForm { const newEndpoint = (): RouteEndpointForm => ({ id: `ep-${Date.now()}-${Math.random().toString(36).slice(2, 6)}`, + disabled: false, gateway: "", distance: 1, scope: null, @@ -241,7 +242,7 @@ function RouteSheet({
- Endpoint {idx + 1} + Endpoint {idx + 1}{ep.disabled ? " · отключён" : ""}