admin/options: nicer

Massimo Melina committed Aug 23, 2023 at 18:27 UTC e07d17eb9cc5744dd0fc8b72b9c666e5147bf686
1 file changed +3 -2
admin/src/OptionsPage.ts
+3 -2
@@ -55,6 +55,7 @@ export default function OptionsPage() {
55 const maxSpeedDefaults = {
56 comp: NumberField,
57 min: 1,
58 + unit: "KB/s",
59 placeholder: "no limit",
60 md: 3,
61 }
@@ -91,8 +92,8 @@ export default function OptionsPage() {
92 return v
93 }
94 },
94 - { k: 'max_kbps', ...maxSpeedDefaults, label: "Limit output KB/s", helperText: "Doesn't apply to localhost" },
95 - { k: 'max_kbps_per_ip', ...maxSpeedDefaults, label: "Limit output KB/s per-ip" },
95 + { k: 'max_kbps', ...maxSpeedDefaults, label: "Limit output", helperText: "Doesn't apply to localhost" },
96 + { k: 'max_kbps_per_ip', ...maxSpeedDefaults, label: "Limit output per-ip" },
97 httpsEnabled && values.port >= 0 && { k: 'force_https', comp: BoolField, sm: 12, md: 4, label: "Force HTTPS",
98 helperText: "Not applied to localhost"
99 },