diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-08-17 14:56:32 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-08-17 14:56:32 +0300 |
| commit | edfc2d8d9350611f68d0be881dc045f04eb38691 (patch) | |
| tree | 39a37fa4258f9dc466941594c71178609d2a97b7 /web/html/xui | |
| parent | dd177b19f758b37c4cee727208de0976bb9a268f (diff) | |
fix switch enable function for clients
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html/xui')
| -rw-r--r-- | web/html/xui/inbounds.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html index 0df42deb..7e438f91 100644 --- a/web/html/xui/inbounds.html +++ b/web/html/xui/inbounds.html @@ -832,6 +832,7 @@ dbInbound = this.dbInbounds.find(row => row.id === dbInboundId); inbound = dbInbound.toInbound(); clients = this.getClients(dbInbound.protocol, inbound.settings); + client.enable = !client.enable; // For finding correct index in findIndexOfClient() function index = this.findIndexOfClient(clients, client); clients[index].enable = !clients[index].enable; clientId = this.getClientId(dbInbound.protocol, clients[index]); |
