fix switch enable disable client

This commit is contained in:
Alireza Ahmadi
2023-04-25 13:38:26 +02:00
parent 5baa397d1c
commit 6db9bd0ad9

View File

@@ -678,7 +678,8 @@
clients = this.getClients(dbInbound.protocol, inbound.settings);
index = this.findIndexOfClient(clients, client);
clients[index].enable = !clients[index].enable;
await this.updateClient(clients[index],dbInboundId, index);
clientId = dbInbound.protocol == "trojan" ? clients[index].password : clients[index].id;
await this.updateClient(clients[index],dbInboundId, clientId);
this.loading(false);
},
async submit(url, data) {