feat(clients): restore Auto Renew field in client form

The vue→react rewrite dropped the per-client `reset` (Auto Renew)
input. The backend's autoRenewClients job has always honoured it, but
the form had no way to set or change the value, so existing
auto-renew settings were also invisible during edits.

Reinstate the field as an InputNumber with a tooltip explaining
"0 = disable (unit: day)", placed on the same row as the Reverse tag
field so the form doesn't grow taller for the common cases. Wired
through FormState defaults, edit-mode hydration, the submit payload,
and ClientFormSchema validation.
This commit is contained in:
MHSanaei
2026-05-27 11:22:49 +02:00
parent 3c5e9fa774
commit 313d041db3
2 changed files with 39 additions and 26 deletions
+1
View File
@@ -108,6 +108,7 @@ export const ClientFormSchema = z.object({
totalGB: z.number().min(0),
delayedStart: z.boolean(),
delayedDays: z.number().int().min(0),
reset: z.number().int().min(0),
limitIp: z.number().int().min(0),
tgId: z.number().int().min(0),
comment: z.string(),