From 5a7bd8c91e5ade1cec68118118be9b6c968bd955 Mon Sep 17 00:00:00 2001 From: Samuel Lorch Date: Tue, 4 Apr 2023 00:01:25 +0200 Subject: [PATCH] update definitions for updated PillBox --- client/src/definitions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/definitions.ts b/client/src/definitions.ts index 82ee24c..6cbc556 100644 --- a/client/src/definitions.ts +++ b/client/src/definitions.ts @@ -7,7 +7,7 @@ export const editTypes: { [key: string]: { [key: string]: any } } = { { fields: [ { key: "name", label: "Name", as: "TextBox" }, - { key: "verdict", label: "Verdict", as: "PillBar", props: { options: [{ name: 'Accept' }, { name: 'Drop' }, { name: 'Continue' }] } }, + { key: "verdict", label: "Verdict", as: "PillBar", props: { options: [{ name: 'Accept', key: 'accept' }, { name: 'Drop', key: 'drop' }, { name: 'Continue', key: 'continue' }] } }, { key: "counter", label: "Counter", as: "CheckBox", }, { key: "comment", label: "Comment", as: "MultilineTextBox", }, ], @@ -23,7 +23,7 @@ export const editTypes: { [key: string]: { [key: string]: any } } = { { fields: [ { key: "name", label: "Name", as: "TextBox", default: "placeholder" }, - { key: "type", label: "Type", as: "PillBar", props: { options: [{ name: 'Hardware' }, { name: 'VLAN' }, { name: 'Bond' }, { name: 'Bridge' }] } }, + { key: "type", label: "Type", as: "PillBar", props: { options: [{ name: 'Hardware', key: 'hardware' }, { name: 'VLAN', key: 'vlan' }, { name: 'Bond', key: 'bond' }, { name: 'Bridge', key: 'bridge' }] } }, { key: "hardware_interface", label: "Hardware Interface", as: "TextBox", enabled: (values: any) => (values["type"] == 0) }, { key: "vlan_id", label: "VLAN ID", as: "NumberBox", props: { min: 1, max: 4094 }, enabled: (values: any) => (values["type"] == 1) }, { key: "bond_members", label: "Bond Members", as: "TextBox", enabled: (values: any) => (values["type"] == 2) },