diff --git a/config/2024/config.json b/config/2024/config.json index 1c0dca0..3c5f273 100644 --- a/config/2024/config.json +++ b/config/2024/config.json @@ -5,13 +5,13 @@ "sections": [ { "name": "Prematch", - "preserveDataOnReset": true, "fields": [ { "title": "Scouter Initials", "type": "text", "required": true, - "code": "scouter" + "code": "scouter", + "preserveDataOnReset": true }, { "title": "Match Number", @@ -32,7 +32,8 @@ "B2": "Blue 2", "B3": "Blue 3" }, - "defaultValue": "R1" + "defaultValue": "R1", + "preserveDataOnReset": true }, { "title": "Team Number", diff --git a/config/schema.json b/config/schema.json index 6b2c612..bebf282 100644 --- a/config/schema.json +++ b/config/schema.json @@ -62,6 +62,10 @@ "disabled": { "type": "boolean" }, + "preserveDataOnReset": { + "type": "boolean", + "description": "If true, field data will not be cleared when the scouting form is reset." + }, "value": {}, "choices": { "type": "object", diff --git a/src/components/QR/CloseButton.tsx b/src/components/QR/CloseButton.tsx index 7efe6b7..74fe3ff 100644 --- a/src/components/QR/CloseButton.tsx +++ b/src/components/QR/CloseButton.tsx @@ -5,7 +5,7 @@ export type CloseButtonProps = { export function CloseButton(props: CloseButtonProps) { return (