Compare commits

...

2 Commits

Author SHA1 Message Date
librelad
7868517d54 Merge claude/2 2026-05-22 14:41:33 +01:00
librelad
dce230f24a feat(webui): bound Verify Data Sample % to 1-100 with custom stepper
CFG_BACKUP_VERIFY_DATA_PERCENT had no field-type case in config-shared.js so
it fell through to the default text input — no up/down stepper and no bounds.
Render it as a number input (min=1, max=100, % unit), which the custom-number
enhancer picks up automatically for the up/down controls.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: librelad <librelad@digitalangels.vip>
2026-05-22 14:41:33 +01:00

View File

@ -661,6 +661,13 @@ class ConfigShared {
<span class="input-group-text">${unitLabel}</span> <span class="input-group-text">${unitLabel}</span>
</div> </div>
`; `;
} else if (key === 'CFG_BACKUP_VERIFY_DATA_PERCENT') {
fieldHTML += `
<div class="input-group">
<input type="number" id="${fieldId}" name="${key}" value="${value}" class="form-control" min="1" max="100" placeholder="5">
<span class="input-group-text">%</span>
</div>
`;
} else if (key === 'CFG_UPDATER_CHECK') { } else if (key === 'CFG_UPDATER_CHECK') {
fieldHTML += ` fieldHTML += `
<div class="input-group"> <div class="input-group">