mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-09-01 07:57:14 +00:00
feat(clients): add bulk enable/disable and move selection actions into More menu
Add bulkEnable/bulkDisable named endpoints backed by a shared internal impl, and consolidate the per-selection actions (attach, detach, add to group, ungroup, enable, disable, adjust, sub links) into the clients table's More dropdown so the toolbar only shows the selection count and delete. Translate the new enable/disable confirm dialogs and toasts across all 13 locales.
This commit is contained in:
@@ -101,6 +101,13 @@ export const BulkDeleteResultSchema = z.object({
|
||||
.optional(),
|
||||
});
|
||||
|
||||
export const BulkSetEnableResultSchema = z.object({
|
||||
changed: z.number(),
|
||||
skipped: z
|
||||
.array(z.object({ email: z.string(), reason: z.string() }))
|
||||
.optional(),
|
||||
});
|
||||
|
||||
export const BulkCreateResultSchema = z.object({
|
||||
created: z.number(),
|
||||
skipped: z
|
||||
@@ -221,6 +228,7 @@ export type ClientPageResponse = z.infer<typeof ClientPageResponseSchema>;
|
||||
export type ClientHydrate = z.infer<typeof ClientHydrateSchema>;
|
||||
export type BulkAdjustResult = z.infer<typeof BulkAdjustResultSchema>;
|
||||
export type BulkDeleteResult = z.infer<typeof BulkDeleteResultSchema>;
|
||||
export type BulkSetEnableResult = z.infer<typeof BulkSetEnableResultSchema>;
|
||||
export type BulkCreateResult = z.infer<typeof BulkCreateResultSchema>;
|
||||
export type BulkAttachResult = z.infer<typeof BulkAttachResultSchema>;
|
||||
export type BulkDetachResult = z.infer<typeof BulkDetachResultSchema>;
|
||||
|
||||
Reference in New Issue
Block a user