fix(hugo): Replace the log message about the head circumference with a flag warning, as that's more visible to the user
This commit is contained in:
parent
a675c655a5
commit
52b8e16e35
2 changed files with 10 additions and 6 deletions
|
@ -23,7 +23,9 @@
|
||||||
"cutNeckBinding.t": "The neck binding is not shown",
|
"cutNeckBinding.t": "The neck binding is not shown",
|
||||||
"cutNeckBinding.d": "The **Neck Binding** (10) is a rectangular piece of main fabric {{{ w }}} wide and {{{ l }}} long, with the grainline parallel to the length.",
|
"cutNeckBinding.d": "The **Neck Binding** (10) is a rectangular piece of main fabric {{{ w }}} wide and {{{ l }}} long, with the grainline parallel to the length.",
|
||||||
"cutWaistband.t": "The waistband is not shown",
|
"cutWaistband.t": "The waistband is not shown",
|
||||||
"cutWaistband.d": "The **Waistband** (8) is a rectangular piece of ribbing fabric {{{ w }}} wide and {{{ l }}} long, with the grainline parallel to the width."
|
"cutWaistband.d": "The **Waistband** (8) is a rectangular piece of ribbing fabric {{{ w }}} wide and {{{ l }}} long, with the grainline parallel to the width.",
|
||||||
|
"neckCircumference.t": "The neck opening is too small",
|
||||||
|
"neckCircumference.d": "The neck opening of {{{ opening }}} is smaller than the head circumference of {{{ head }}}.\n\nPlease check and adjust Collar Ease option setting as needed to ensure the neck opening is large enough to accommodate head circumference."
|
||||||
},
|
},
|
||||||
"o": {
|
"o": {
|
||||||
"ribbingHeight": {
|
"ribbingHeight": {
|
||||||
|
|
|
@ -266,11 +266,13 @@ function hugoSleeve({
|
||||||
)
|
)
|
||||||
|
|
||||||
if (discrepancy > warning_limit) {
|
if (discrepancy > warning_limit) {
|
||||||
log.warn(
|
store.flag.warn({
|
||||||
'Please check and adjust Collar Ease option setting ' +
|
msg: `hugo:neckCircumference`,
|
||||||
'as needed to ensure neck opening is large enough to accommodate ' +
|
replace: {
|
||||||
'head circumference.'
|
opening: units(neck_opening),
|
||||||
)
|
head: units(measurements.head),
|
||||||
|
},
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
return part
|
return part
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue