From dce230f24ae3c87844ffa08a3d453a6a5dfd74b0 Mon Sep 17 00:00:00 2001 From: librelad Date: Fri, 22 May 2026 14:41:33 +0100 Subject: [PATCH] feat(webui): bound Verify Data Sample % to 1-100 with custom stepper MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: librelad --- .../frontend/js/components/config/config-shared.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/containers/libreportal/frontend/js/components/config/config-shared.js b/containers/libreportal/frontend/js/components/config/config-shared.js index 6dd6421..f91ed95 100755 --- a/containers/libreportal/frontend/js/components/config/config-shared.js +++ b/containers/libreportal/frontend/js/components/config/config-shared.js @@ -661,6 +661,13 @@ class ConfigShared { ${unitLabel} `; + } else if (key === 'CFG_BACKUP_VERIFY_DATA_PERCENT') { + fieldHTML += ` +
+ + % +
+ `; } else if (key === 'CFG_UPDATER_CHECK') { fieldHTML += `