fix(clients): step traffic input by 1 GB instead of 0.1

The +/- buttons on the Total Sent/Received field nudged in 0.1 GB
increments which is too granular for typical use. Set step=1 so each
press moves a whole GB; users can still type decimal values directly.
This commit is contained in:
MHSanaei 2026-05-23 16:14:03 +02:00
parent d0b388db5b
commit 0abcaae32c
No known key found for this signature in database
GPG key ID: 7E4060F2FBE5AB7A
2 changed files with 2 additions and 2 deletions

View file

@ -308,7 +308,7 @@ export default function ClientBulkAddModal({
)}
<Form.Item label={t('pages.clients.totalGB')}>
<InputNumber value={form.totalGB} min={0} step={0.1} onChange={(v) => update('totalGB', Number(v) || 0)} />
<InputNumber value={form.totalGB} min={0} step={1} onChange={(v) => update('totalGB', Number(v) || 0)} />
</Form.Item>
<Form.Item label={t('pages.clients.delayedStart')}>

View file

@ -393,7 +393,7 @@ export default function ClientFormModal({
</Col>
<Col xs={24} md={ipLimitEnable ? 8 : 12}>
<Form.Item label={t('pages.clients.totalGB')}>
<InputNumber value={form.totalGB} min={0} step={0.1} style={{ width: '100%' }}
<InputNumber value={form.totalGB} min={0} step={1} style={{ width: '100%' }}
onChange={(v) => update('totalGB', Number(v) || 0)} />
</Form.Item>
</Col>