Optimize client settings

This commit is contained in:
Alireza Ahmadi
2023-04-19 00:42:54 +02:00
parent 7455a2baa3
commit f4f1d477b3
2 changed files with 30 additions and 20 deletions

View File

@@ -655,8 +655,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) {