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
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2023-04-25 14:08:35 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-04-25 14:08:35 +0300
commitcc3ff61ae215bdaec0c1ae0c3ee232156015c6b4 (patch)
tree0c4e9f1544b1cd50e03a22fa9a9b94838f90e511 /web/html/xui/inbounds.html
parent045717010a74fa609670caf495458d8ffc99f98f (diff)
update by client id
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html/xui/inbounds.html')
-rw-r--r--web/html/xui/inbounds.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html
index 0aeba067..14849873 100644
--- a/web/html/xui/inbounds.html
+++ b/web/html/xui/inbounds.html
@@ -561,9 +561,9 @@
okText: '{{ i18n "pages.client.submitEdit"}}',
dbInbound: dbInbound,
index: index,
- confirm: async (client, dbInboundId, index) => {
+ confirm: async (client, dbInboundId, clientId) => {
clientModal.loading();
- await this.updateClient(client, dbInboundId, index);
+ await this.updateClient(client, dbInboundId, clientId);
clientModal.close();
},
isEdit: true
@@ -580,12 +580,12 @@
};
await this.submit(`/xui/inbound/addClient`, data);
},
- async updateClient(client, dbInboundId, index) {
+ async updateClient(client, dbInboundId, clientId) {
const data = {
id: dbInboundId,
settings: '{"clients": [' + client.toString() +']}',
};
- await this.submit(`/xui/inbound/updateClient/${index}`, data);
+ await this.submit(`/xui/inbound/updateClient/${clientId}`, data);
},
resetTraffic(dbInboundId) {
dbInbound = this.dbInbounds.find(row => row.id === dbInboundId);