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>
This commit is contained in:
librelad 2026-05-22 14:41:33 +01:00
parent a8161f04e5
commit dce230f24a

View File

@ -661,6 +661,13 @@ class ConfigShared {
<span class="input-group-text">${unitLabel}</span>
</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') {
fieldHTML += `
<div class="input-group">