Use SingleSelect for Static Route Interface

This commit is contained in:
Samuel Lorch 2023-04-19 11:06:56 +02:00
parent eec845ee76
commit 214117f245

View file

@ -119,7 +119,7 @@ export const editTypes: { [key: string]: { [key: string]: any } } = {
{ {
fields: [ fields: [
{ key: "name", label: "Name", as: "TextBox" }, { 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: "gateway", label: "Gateway", as: "TextBox" },
{ key: "destination", label: "Destination", as: "TextBox" }, { key: "destination", label: "Destination", as: "TextBox" },
{ key: "metric", label: "Metric", as: "NumberBox" }, { key: "metric", label: "Metric", as: "NumberBox" },