From edfc2d8d9350611f68d0be881dc045f04eb38691 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Thu, 17 Aug 2023 15:26:32 +0330 Subject: [PATCH] fix switch enable function for clients Co-Authored-By: Alireza Ahmadi --- web/html/xui/inbounds.html | 1 + 1 file changed, 1 insertion(+) 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]);