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:
parent
a8161f04e5
commit
dce230f24a
@ -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">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user