mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #4938] [Feature]: attach and deattach buttun in groups #3457
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#3457
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @reza74ta-spec on GitHub (Jun 5, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4938
Is your feature request related to a problem?
Attach and Deattach buttun in Groups section will be verry usefull
Describe the solution you'd like
.
Alternatives you've considered
No response
Concrete use case
No response
Mockups, screenshots, or examples
No response
Which parts of the panel would this affect?
No response
Are you willing to help?
Before submitting
@github-actions[bot] commented on GitHub (Jun 5, 2026):
Thanks for the request!
To clarify the terminology used in this codebase: attach/detach means linking a client to one or more inbounds (so the client is active on those inbounds). This is distinct from adding/removing clients from a group (which just labels them).
Current state:
POST /panel/api/clients/bulkAttach— attach a list of clients (by email) to inbound IDsPOST /panel/api/clients/bulkDetach— detach a list of clients from inbound IDsbulkAttach/bulkDetach) and the modal components (BulkAttachInboundsModal,BulkDetachInboundsModal) are already implemented and used on the Clients page — you can select multiple clients there and use the bulk-attach/detach action.What's missing:
The Groups page (
frontend/src/pages/groups/GroupsPage.tsx) does not yet expose attach/detach actions. Adding them would let you pick a group and attach/detach all its clients to selected inbounds in one step, without going to the Clients page first.What a PR would need:
GroupsPage.tsx, add two new entries to therowActionsmenu (around line 329): one for "Attach to inbounds" and one for "Detach from inbounds".fetchEmailsForGroup) when either action is triggered — the same pattern already used foropenAdjustForandopenSubLinksFor.BulkAttachInboundsModalandBulkDetachInboundsModalcomponents (already used inClientsPage.tsx), importing them as lazy mounts.bulkAttach(emails, inboundIds)/bulkDetach(emails, inboundIds)from theuseClientshook — both are already exported but not yet destructured inGroupsPage.tsx.The backend is fully in place; this is purely a frontend addition. If you'd like to implement it yourself, a PR would be welcome!