From 13de2c6ca0d9101d247a81aa06dddbf338441703 Mon Sep 17 00:00:00 2001 From: surbiks <43953720+surbiks@users.noreply.github.com> Date: Wed, 7 Feb 2024 11:25:31 +0330 Subject: add outbound traffic reset (#1767) --- web/html/xui/xray.html | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'web/html/xui/xray.html') diff --git a/web/html/xui/xray.html b/web/html/xui/xray.html index a144c766..871631e0 100644 --- a/web/html/xui/xray.html +++ b/web/html/xui/xray.html @@ -385,11 +385,13 @@ - {{ i18n "pages.xray.outbound.addOutbound" }} + {{ i18n + "pages.xray.outbound.addOutbound" }} WARP - + + {{ i18n "edit" }} + + + {{ i18n "pages.inbounds.resetTraffic"}} + + {{ i18n "delete"}} @@ -947,6 +954,16 @@ this.refreshing = false; } }, + async resetOutboundTraffic(index) { + let tag = "-alltags-"; + if (index >= 0) { + tag = this.outboundData[index].tag ? this.outboundData[index].tag : "" + } + const msg = await HttpUtil.post("/panel/xray/resetOutboundsTraffic", { tag: tag }); + if (msg.success) { + await this.refreshOutboundTraffic(); + } + }, addBalancer() { balancerModal.show({ title: '{{ i18n "pages.xray.balancer.addBalancer"}}', -- cgit v1.2.3