Skip to content

Commit

Permalink
Update CNC settings display condition
Browse files Browse the repository at this point in the history
remove control-fieldset class from grblHAL dor Mask for consistency
  • Loading branch information
luc-github committed Dec 9, 2024
1 parent c8debd7 commit 7266acf
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/components/Controls/Fields/Mask.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const Mask = ({
)

return (
<FieldGroup className="m-1 control-fieldset" id={id} label={label}>
<FieldGroup className="m-1" id={id} label={label}>
{options.map((option, index) => {
const [validation, setvalidation] = useState()
const generateValidation = (fieldData) => {
Expand Down
3 changes: 3 additions & 0 deletions src/targets/CNC/GRBL/preferences.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@
"id": "axis",
"type": "group",
"label": "CN8",
"depend": [{ "id": "showjogpanel", "value": true }],
"value": [
{
"id": "showx",
Expand Down Expand Up @@ -215,6 +216,7 @@
"id": "feedrate",
"type": "group",
"label": "CN9",
"depend": [{ "id": "showjogpanel", "value": true }],
"value": [
{
"id": "xyfeedrate",
Expand Down Expand Up @@ -304,6 +306,7 @@
"editable": true,
"label": "S212",
"type": "list",
"depend": [{ "id": "showjogpanel", "value": true }],
"value": [
{
"id": "btn+X",
Expand Down
3 changes: 3 additions & 0 deletions src/targets/CNC/grblHAL/preferences.json
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@
"id": "axis",
"type": "group",
"label": "CN8",
"depend": [{ "id": "showjogpanel", "value": true }],
"value": [
{
"id": "showx",
Expand Down Expand Up @@ -300,6 +301,7 @@
"id": "feedrate",
"type": "group",
"label": "CN9",
"depend": [{ "id": "showjogpanel", "value": true }],
"value": [
{
"id": "xyfeedrate",
Expand Down Expand Up @@ -463,6 +465,7 @@
"editable": true,
"label": "S212",
"type": "list",
"depend": [{ "id": "showjogpanel", "value": true }],
"value": [
{
"id": "btn+X",
Expand Down
53 changes: 36 additions & 17 deletions src/targets/CNC/preferences.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"id": "openstatusonstart",
"type": "boolean",
"label": "S93",
"value": true
"value": true,
"depend": [{ "id": "showstatuspanel", "value": true }]
}
],
"probe": [
Expand All @@ -25,23 +26,26 @@
"id": "openprobeonstart",
"type": "boolean",
"label": "S93",
"value": true
"value": true,
"depend": [{ "id": "showprobepanel", "value": true }]
},
{
"id": "probefeedrate",
"type": "number",
"label": "CN9",
"append": "CN1",
"value": 20,
"min": 1
"min": 1,
"depend": [{ "id": "showprobepanel", "value": true }]
},
{
"id": "maxprobe",
"type": "number",
"label": "CN93",
"value": 15,
"append": "CN96",
"min": 0
"min": 0,
"depend": [{ "id": "showprobepanel", "value": true }]
},
{
"id": "probethickness",
Expand All @@ -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": [
Expand All @@ -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",
Expand All @@ -102,7 +110,8 @@
"type": "number",
"label": "CN84",
"value": 1000,
"min": 1
"min": 1,
"depend": [{ "id": "showlaserpanel", "value": true }]
}
],
"spindle": [
Expand All @@ -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",
Expand All @@ -146,7 +159,8 @@
{
"id": "showCoolantctrls",
"value": true
}
},
{ "id": "showspindlepanel", "value": true }
]
},
{
Expand All @@ -158,7 +172,8 @@
{
"id": "showMistctrls",
"value": true
}
},
{ "id": "showspindlepanel", "value": true }
]
}
],
Expand All @@ -173,14 +188,16 @@
"id": "openoverridesonstart",
"type": "boolean",
"label": "S93",
"value": true
"value": true,
"depend": [{ "id": "showoverridespanel", "value": true }]
}
],
"jog": [
{
"id": "home",
"type": "group",
"label": "CN17",
"depend": [{ "id": "showjogpanel", "value": true }],
"value": [
{
"id": "homesingleaxis",
Expand All @@ -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 }]
}
]
}
Expand Down

0 comments on commit 7266acf

Please sign in to comment.