From 214117f24500fc2b1fc8bbf00efc5839592e3b42 Mon Sep 17 00:00:00 2001 From: Samuel Lorch Date: Wed, 19 Apr 2023 11:06:56 +0200 Subject: [PATCH] Use SingleSelect for Static Route Interface --- client/src/definitions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/definitions.ts b/client/src/definitions.ts index 8aac50d..25ba949 100644 --- a/client/src/definitions.ts +++ b/client/src/definitions.ts @@ -119,7 +119,7 @@ export const editTypes: { [key: string]: { [key: string]: any } } = { { fields: [ { key: "name", label: "Name", as: "TextBox" }, - { key: "interface", label: "Interface", as: "TextBox" }, + { key: "interface", label: "Interface", as: "SingleSelect", props: { searchProvider: GetInterfaces } }, { key: "gateway", label: "Gateway", as: "TextBox" }, { key: "destination", label: "Destination", as: "TextBox" }, { key: "metric", label: "Metric", as: "NumberBox" },