mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[PR #4315] [MERGED] fix: delete button missing after searching for a user #5648
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#5648
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/4315
Author: @abdalrahmanx9
Created: 5/12/2026
Status: ✅ Merged
Merged: 5/12/2026
Merged by: @MHSanaei
Base:
main← Head:fix/delete-button-missing-on-search📝 Commits (1)
cdeb144fix: delete button missing after searching for a user📊 Changes
2 files changed (+4 additions, -2 deletions)
View changed files
📝
frontend/src/pages/inbounds/ClientRowTable.vue(+2 -1)📝
frontend/src/pages/inbounds/InboundList.vue(+2 -1)📄 Description
Summary
When searching for a user, the "Delete" button disappears from search results, making it impossible to delete a user directly from search.
Root Cause
ClientRowTable.vuecomputesisRemovableasclients.value.length > 1. When a search is active,InboundList.vueprojects the inbound viaprojectInbound(), creating a clone with only the matching clients. If exactly 1 client matches the search,clients.value.lengthbecomes1, soisRemovableevaluates tofalse— hiding the Delete button (and bulk-delete bar) even though the original inbound may have many clients.Fix
totalClientCountprop toClientRowTable.vueisRemovableto use the original total client count (from the parent'sclientCountprop), falling back to the projected count for backward compatibility:total-client-countfromInboundList.vuein both mobile card and desktop table templatesCloses #4313
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.