Browse Source

Add seconds properties to fields that are missing them

pull/192/head
Zachary McGibbon 2 years ago
parent
commit
98a5779f9d
  1. 5
      src/components/PageComponents/Config/Display.tsx
  2. 6
      src/components/PageComponents/Config/Position.tsx
  3. 3
      src/components/PageComponents/ModuleConfig/DetectionSensor.tsx
  4. 3
      src/components/PageComponents/ModuleConfig/MQTT.tsx
  5. 5
      src/components/PageComponents/ModuleConfig/NeighborInfo.tsx
  6. 3
      src/components/PageComponents/ModuleConfig/Paxcounter.tsx
  7. 3
      src/components/PageComponents/ModuleConfig/RangeTest.tsx
  8. 4
      src/components/PageComponents/ModuleConfig/Telemetry.tsx

5
src/components/PageComponents/Config/Display.tsx

@ -32,7 +32,7 @@ export const Display = (): JSX.Element => {
label: "Screen Timeout", label: "Screen Timeout",
description: "Turn off the display after this long", description: "Turn off the display after this long",
properties: { properties: {
suffix: "seconds", suffix: "Seconds",
}, },
}, },
{ {
@ -50,6 +50,9 @@ export const Display = (): JSX.Element => {
name: "autoScreenCarouselSecs", name: "autoScreenCarouselSecs",
label: "Carousel Delay", label: "Carousel Delay",
description: "How fast to cycle through windows", description: "How fast to cycle through windows",
properties: {
suffix: "Seconds",
},
}, },
{ {
type: "toggle", type: "toggle",

6
src/components/PageComponents/Config/Position.tsx

@ -94,12 +94,18 @@ export const Position = (): JSX.Element => {
name: "positionBroadcastSecs", name: "positionBroadcastSecs",
label: "Broadcast Interval", label: "Broadcast Interval",
description: "How often your position is sent out over the mesh", description: "How often your position is sent out over the mesh",
properties: {
suffix: "Seconds",
},
}, },
{ {
type: "number", type: "number",
name: "gpsUpdateInterval", name: "gpsUpdateInterval",
label: "GPS Update Interval", label: "GPS Update Interval",
description: "How often a GPS fix should be acquired", description: "How often a GPS fix should be acquired",
properties: {
suffix: "Seconds",
},
}, },
{ {
type: "number", type: "number",

3
src/components/PageComponents/ModuleConfig/DetectionSensor.tsx

@ -38,6 +38,9 @@ export const DetectionSensor = (): JSX.Element => {
label: "Minimum Broadcast Seconds", label: "Minimum Broadcast Seconds",
description: description:
"The interval in seconds of how often we can send a message to the mesh when a state change is detected", "The interval in seconds of how often we can send a message to the mesh when a state change is detected",
properties: {
suffix: "Seconds",
},
disabledBy: [ disabledBy: [
{ {
fieldName: "enabled", fieldName: "enabled",

3
src/components/PageComponents/ModuleConfig/MQTT.tsx

@ -138,6 +138,9 @@ export const MQTT = (): JSX.Element => {
name: "mapReportSettings.publishIntervalSecs", name: "mapReportSettings.publishIntervalSecs",
label: "Map Report Publish Interval (s)", label: "Map Report Publish Interval (s)",
description: "Interval in seconds to publish map reports", description: "Interval in seconds to publish map reports",
properties: {
suffix: "Seconds",
},
disabledBy: [ disabledBy: [
{ {
fieldName: "enabled", fieldName: "enabled",

5
src/components/PageComponents/ModuleConfig/NeighborInfo.tsx

@ -36,8 +36,11 @@ export const NeighborInfo = (): JSX.Element => {
type: "number", type: "number",
name: "updateInterval", name: "updateInterval",
label: "Update Interval", label: "Update Interval",
description: description:
"Interval in seconds of how often we should try to send our Neighbor Info to the mesh", "Interval in seconds of how often we should try to send our Neighbor Info to the mesh",
properties: {
suffix: "Seconds",
},
disabledBy: [ disabledBy: [
{ {
fieldName: "enabled", fieldName: "enabled",

3
src/components/PageComponents/ModuleConfig/Paxcounter.tsx

@ -37,6 +37,9 @@ export const Paxcounter = (): JSX.Element => {
name: "paxcounterUpdateInterval", name: "paxcounterUpdateInterval",
label: "Update Interval (seconds)", label: "Update Interval (seconds)",
description: "How long to wait between sending paxcounter packets", description: "How long to wait between sending paxcounter packets",
properties: {
suffix: "Seconds",
},
disabledBy: [ disabledBy: [
{ {
fieldName: "enabled", fieldName: "enabled",

3
src/components/PageComponents/ModuleConfig/RangeTest.tsx

@ -37,6 +37,9 @@ export const RangeTest = (): JSX.Element => {
name: "sender", name: "sender",
label: "Message Interval", label: "Message Interval",
description: "How long to wait between sending test packets", description: "How long to wait between sending test packets",
properties: {
suffix: "Seconds",
},
disabledBy: [ disabledBy: [
{ {
fieldName: "enabled", fieldName: "enabled",

4
src/components/PageComponents/ModuleConfig/Telemetry.tsx

@ -32,7 +32,7 @@ export const Telemetry = (): JSX.Element => {
label: "Query Interval", label: "Query Interval",
description: "Interval to get telemetry data", description: "Interval to get telemetry data",
properties: { properties: {
suffix: "seconds", suffix: "Seconds",
}, },
}, },
{ {
@ -41,7 +41,7 @@ export const Telemetry = (): JSX.Element => {
label: "Update Interval", label: "Update Interval",
description: "How often to send Metrics over the mesh", description: "How often to send Metrics over the mesh",
properties: { properties: {
suffix: "seconds", suffix: "Seconds",
}, },
}, },
{ {

Loading…
Cancel
Save