Skip to content

Commit

Permalink
Merge pull request #192 from mzac/master
Browse files Browse the repository at this point in the history
Add seconds properties to fields that are missing them
  • Loading branch information
Hunter275 authored Jun 16, 2024
2 parents 667a219 + 98a5779 commit 56b8632
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/components/PageComponents/Config/Display.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const Display = (): JSX.Element => {
label: "Screen Timeout",
description: "Turn off the display after this long",
properties: {
suffix: "seconds",
suffix: "Seconds",
},
},
{
Expand All @@ -50,6 +50,9 @@ export const Display = (): JSX.Element => {
name: "autoScreenCarouselSecs",
label: "Carousel Delay",
description: "How fast to cycle through windows",
properties: {
suffix: "Seconds",
},
},
{
type: "toggle",
Expand Down
6 changes: 6 additions & 0 deletions src/components/PageComponents/Config/Position.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,18 @@ export const Position = (): JSX.Element => {
name: "positionBroadcastSecs",
label: "Broadcast Interval",
description: "How often your position is sent out over the mesh",
properties: {
suffix: "Seconds",
},
},
{
type: "number",
name: "gpsUpdateInterval",
label: "GPS Update Interval",
description: "How often a GPS fix should be acquired",
properties: {
suffix: "Seconds",
},
},
{
type: "number",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ export const DetectionSensor = (): JSX.Element => {
label: "Minimum Broadcast Seconds",
description:
"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: [
{
fieldName: "enabled",
Expand Down
3 changes: 3 additions & 0 deletions src/components/PageComponents/ModuleConfig/MQTT.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ export const MQTT = (): JSX.Element => {
name: "mapReportSettings.publishIntervalSecs",
label: "Map Report Publish Interval (s)",
description: "Interval in seconds to publish map reports",
properties: {
suffix: "Seconds",
},
disabledBy: [
{
fieldName: "enabled",
Expand Down
5 changes: 4 additions & 1 deletion src/components/PageComponents/ModuleConfig/NeighborInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ export const NeighborInfo = (): JSX.Element => {
type: "number",
name: "updateInterval",
label: "Update Interval",
description:
description:
"Interval in seconds of how often we should try to send our Neighbor Info to the mesh",
properties: {
suffix: "Seconds",
},
disabledBy: [
{
fieldName: "enabled",
Expand Down
3 changes: 3 additions & 0 deletions src/components/PageComponents/ModuleConfig/Paxcounter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ export const Paxcounter = (): JSX.Element => {
name: "paxcounterUpdateInterval",
label: "Update Interval (seconds)",
description: "How long to wait between sending paxcounter packets",
properties: {
suffix: "Seconds",
},
disabledBy: [
{
fieldName: "enabled",
Expand Down
3 changes: 3 additions & 0 deletions src/components/PageComponents/ModuleConfig/RangeTest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ export const RangeTest = (): JSX.Element => {
name: "sender",
label: "Message Interval",
description: "How long to wait between sending test packets",
properties: {
suffix: "Seconds",
},
disabledBy: [
{
fieldName: "enabled",
Expand Down
4 changes: 2 additions & 2 deletions src/components/PageComponents/ModuleConfig/Telemetry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const Telemetry = (): JSX.Element => {
label: "Query Interval",
description: "Interval to get telemetry data",
properties: {
suffix: "seconds",
suffix: "Seconds",
},
},
{
Expand All @@ -41,7 +41,7 @@ export const Telemetry = (): JSX.Element => {
label: "Update Interval",
description: "How often to send Metrics over the mesh",
properties: {
suffix: "seconds",
suffix: "Seconds",
},
},
{
Expand Down

0 comments on commit 56b8632

Please sign in to comment.