diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-04-25 14:08:35 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-04-25 14:08:35 +0300 |
| commit | cc3ff61ae215bdaec0c1ae0c3ee232156015c6b4 (patch) | |
| tree | 0c4e9f1544b1cd50e03a22fa9a9b94838f90e511 /web/html/xui/inbounds.html | |
| parent | 045717010a74fa609670caf495458d8ffc99f98f (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.html | 8 |
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); |
