Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/web/html
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2023-04-19 11:25:38 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-04-19 11:25:38 +0300
commite1132a3f416eb0a894fd2dc9aaf9e29c0d93098f (patch)
tree60939cef5248d6d30cdf622b7481764db25d5240 /web/html
parent4d479102ad8ecf309ec340f9e0778f1231788185 (diff)
bug fix
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html')
-rw-r--r--web/html/xui/inbounds.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html
index 15782b1d..5bfcaccd 100644
--- a/web/html/xui/inbounds.html
+++ b/web/html/xui/inbounds.html
@@ -658,8 +658,8 @@
inbound = dbInbound.toInbound();
clients = this.getClients(dbInbound.protocol, inbound.settings);
index = this.findIndexOfClient(clients, client);
- clients[index].enable = ! clients[index].enable
- await this.updateClient(inbound, dbInbound, index);
+ clients[index].enable = !clients[index].enable;
+ await this.updateClient(clients[index],dbInboundId, index);
this.loading(false);
},
async submit(url, data) {