mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-08-20 18:11:00 +00:00
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:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user