mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6736] [MERGED] fix(inbounds): list clients in the detach/attach modals when they mount open #6435
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#6435
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?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/6736
Author: @drakeo338
Created: 10/5/2026
Status: ✅ Merged
Merged: 10/5/2026
Merged by: @MHSanaei
Base:
main← Head:claude/6733-fix📝 Commits (3)
0f55b2afix(inbounds): list clients in the detach modal when it mounts openb23a3cbfix(inbounds): list clients in the attach modal when it mounts open0717e31Merge branch 'main' into claude/6733-fix📊 Changes
4 files changed (+81 additions, -2 deletions)
View changed files
📝
frontend/src/pages/inbounds/clients/AttachClientsModal.tsx(+1 -1)📝
frontend/src/pages/inbounds/clients/DetachClientsModal.tsx(+1 -1)➕
frontend/src/test/attach-clients-modal.test.tsx(+43 -0)➕
frontend/src/test/detach-clients-modal.test.tsx(+36 -0)📄 Description
Summary
The detach and attach client modals now load their client rows when first mounted already open.
Why
Fixes #6733. DetachClientsModal (and AttachClientsModal, same pattern) seeded its synced-source state so a modal first mounted open saw no change on first render and never loaded the rows; the table stayed empty until closed and reopened. Both now load on mount when open.
Type of change
Areas affected
How was this tested?
Added detach-clients-modal and attach-clients-modal tests that mount the modal open; both fail on the base commit and pass with the fix.
Screenshots / recordings
N/A
Breaking changes
None
Checklist
go build ./...and the test suite pass locally.npm run lint,npm run typecheck, andnpm run buildpass.Not ticked: I ran only the two new tests on HEAD, not go build, lint, typecheck, or the full build.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.