diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-06-03 18:29:32 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-06-03 18:29:32 +0300 |
| commit | fdc1124ea495aafbb5096b0333e8ceff6aaa53f8 (patch) | |
| tree | 990344071070d6d8b57d9989e862f84cbbc25d94 /web/html/xui/client_modal.html | |
| parent | 33a598366be966ded4e0b41bbe19fd566552eec3 (diff) | |
some changes
ip limit method back to v1.6.0 method
remove event on getDBClientIps
better show ip on log (",\n")
Diffstat (limited to 'web/html/xui/client_modal.html')
| -rw-r--r-- | web/html/xui/client_modal.html | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/web/html/xui/client_modal.html b/web/html/xui/client_modal.html index ba9fce31..e8236778 100644 --- a/web/html/xui/client_modal.html +++ b/web/html/xui/client_modal.html @@ -120,26 +120,27 @@ }, }, methods: { - async getDBClientIps(email, event) { - const msg = await HttpUtil.post('/panel/inbound/clientIps/' + email); - if (!msg.success) { - return; - } + async getDBClientIps(email) { try { - ips = JSON.parse(msg.obj) - ips = ips.join(",") - event.target.value = ips + const msg = await HttpUtil.post(`/panel/inbound/clientIps/${email}`); + if (!msg.success) { + return; + } + const ips = JSON.parse(msg.obj).join(",\n"); + document.getElementById("clientIPs").value = ips; } catch (error) { - // text - event.target.value = msg.obj + document.getElementById("clientIPs").value = msg.obj; } }, async clearDBClientIps(email) { - const msg = await HttpUtil.post('/panel/inbound/clearClientIps/' + email); - if (!msg.success) { - return; + try { + const msg = await HttpUtil.post(`/panel/inbound/clearClientIps/${email}`); + if (!msg.success) { + return; + } + document.getElementById("clientIPs").value = ""; + } catch (error) { } - document.getElementById("clientIPs").value = "" }, resetClientTraffic(email, dbInboundId, iconElement) { this.$confirm({ |
