diff --git a/src/components/Controls/Fields/Mask.js b/src/components/Controls/Fields/Mask.js index 9da3405d..a296cc82 100644 --- a/src/components/Controls/Fields/Mask.js +++ b/src/components/Controls/Fields/Mask.js @@ -96,7 +96,7 @@ const Mask = ({ ) return ( - + {options.map((option, index) => { const [validation, setvalidation] = useState() const generateValidation = (fieldData) => { diff --git a/src/targets/CNC/GRBL/preferences.json b/src/targets/CNC/GRBL/preferences.json index 6b39ecc0..0e592d0b 100644 --- a/src/targets/CNC/GRBL/preferences.json +++ b/src/targets/CNC/GRBL/preferences.json @@ -172,6 +172,7 @@ "id": "axis", "type": "group", "label": "CN8", + "depend": [{ "id": "showjogpanel", "value": true }], "value": [ { "id": "showx", @@ -215,6 +216,7 @@ "id": "feedrate", "type": "group", "label": "CN9", + "depend": [{ "id": "showjogpanel", "value": true }], "value": [ { "id": "xyfeedrate", @@ -304,6 +306,7 @@ "editable": true, "label": "S212", "type": "list", + "depend": [{ "id": "showjogpanel", "value": true }], "value": [ { "id": "btn+X", diff --git a/src/targets/CNC/grblHAL/preferences.json b/src/targets/CNC/grblHAL/preferences.json index 2cd46270..b4d80b24 100644 --- a/src/targets/CNC/grblHAL/preferences.json +++ b/src/targets/CNC/grblHAL/preferences.json @@ -185,6 +185,7 @@ "id": "axis", "type": "group", "label": "CN8", + "depend": [{ "id": "showjogpanel", "value": true }], "value": [ { "id": "showx", @@ -300,6 +301,7 @@ "id": "feedrate", "type": "group", "label": "CN9", + "depend": [{ "id": "showjogpanel", "value": true }], "value": [ { "id": "xyfeedrate", @@ -463,6 +465,7 @@ "editable": true, "label": "S212", "type": "list", + "depend": [{ "id": "showjogpanel", "value": true }], "value": [ { "id": "btn+X", diff --git a/src/targets/CNC/preferences.json b/src/targets/CNC/preferences.json index b01d2108..3512de35 100644 --- a/src/targets/CNC/preferences.json +++ b/src/targets/CNC/preferences.json @@ -11,7 +11,8 @@ "id": "openstatusonstart", "type": "boolean", "label": "S93", - "value": true + "value": true, + "depend": [{ "id": "showstatuspanel", "value": true }] } ], "probe": [ @@ -25,7 +26,8 @@ "id": "openprobeonstart", "type": "boolean", "label": "S93", - "value": true + "value": true, + "depend": [{ "id": "showprobepanel", "value": true }] }, { "id": "probefeedrate", @@ -33,7 +35,8 @@ "label": "CN9", "append": "CN1", "value": 20, - "min": 1 + "min": 1, + "depend": [{ "id": "showprobepanel", "value": true }] }, { "id": "maxprobe", @@ -41,7 +44,8 @@ "label": "CN93", "value": 15, "append": "CN96", - "min": 0 + "min": 0, + "depend": [{ "id": "showprobepanel", "value": true }] }, { "id": "probethickness", @@ -50,14 +54,16 @@ "value": "1", "step": "0.001", "append": "CN96", - "min": 0 + "min": 0, + "depend": [{ "id": "showprobepanel", "value": true }] }, { "id": "probepostcommand", "type": "text", "label": "CN95", "value": "G10 L20 P0 #selected_axis##probe_thickness#", - "help": "S97" + "help": "S97", + "depend": [{ "id": "showprobepanel", "value": true }] } ], "laser": [ @@ -71,12 +77,14 @@ "id": "openlaseronstart", "type": "boolean", "label": "S93", - "value": true + "value": true, + "depend": [{ "id": "showlaserpanel", "value": true }] }, { "id": "laser", "type": "group", "label": "CN90", + "depend": [{ "id": "showlaserpanel", "value": true }], "value": [ { "id": "lasertest", @@ -102,7 +110,8 @@ "type": "number", "label": "CN84", "value": 1000, - "min": 1 + "min": 1, + "depend": [{ "id": "showlaserpanel", "value": true }] } ], "spindle": [ @@ -116,26 +125,30 @@ "id": "openspindleonstart", "type": "boolean", "label": "S93", - "value": true + "value": true, + "depend": [{ "id": "showspindlepanel", "value": true }] }, { "id": "spindlespeed", "type": "number", "label": "CN59", "value": 1000, - "min": 0 + "min": 0, + "depend": [{ "id": "showspindlepanel", "value": true }] }, { "id": "showM4ctrls", "type": "boolean", "label": "CN70", - "value": true + "value": true, + "depend": [{ "id": "showspindlepanel", "value": true }] }, { "id": "showCoolantctrls", "type": "boolean", "label": "CN72", - "value": true + "value": true, + "depend": [{ "id": "showspindlepanel", "value": true }] }, { "id": "showMistctrls", @@ -146,7 +159,8 @@ { "id": "showCoolantctrls", "value": true - } + }, + { "id": "showspindlepanel", "value": true } ] }, { @@ -158,7 +172,8 @@ { "id": "showMistctrls", "value": true - } + }, + { "id": "showspindlepanel", "value": true } ] } ], @@ -173,7 +188,8 @@ "id": "openoverridesonstart", "type": "boolean", "label": "S93", - "value": true + "value": true, + "depend": [{ "id": "showoverridespanel", "value": true }] } ], "jog": [ @@ -181,6 +197,7 @@ "id": "home", "type": "group", "label": "CN17", + "depend": [{ "id": "showjogpanel", "value": true }], "value": [ { "id": "homesingleaxis", @@ -202,14 +219,16 @@ "type": "text", "label": "CN19", "value": "G10 L20 P0 #", - "help": "CN11" + "help": "CN11", + "depend": [{ "id": "showjogpanel", "value": true }] }, { "id": "jogstopcmd", "type": "text", "label": "CN23", "value": "#JOGCANCEL#", - "help": "S97" + "help": "S97", + "depend": [{ "id": "showjogpanel", "value": true }] } ] }