From 88744d92b3677b33f0b6265bacb7805aeab856e6 Mon Sep 17 00:00:00 2001 From: MHSanaei <33454419+MHSanaei@users.noreply.github.com> Date: Mon, 27 Mar 2023 20:12:45 +0330 Subject: new feature - reset traffic all inbound --- web/html/xui/inbounds.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'web/html') diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html index 9fd663f7..90250869 100644 --- a/web/html/xui/inbounds.html +++ b/web/html/xui/inbounds.html @@ -52,6 +52,7 @@
{{ i18n "pages.inbounds.addInbound" }} {{ i18n "pages.inbounds.export" }} + {{ i18n "pages.inbounds.resetAllTraffic" }}
{ + for (const dbInbound of this.dbInbounds) { + const inbound = dbInbound.toInbound(); + dbInbound.up = 0; + dbInbound.down = 0; + this.updateInbound(inbound, dbInbound); + } + }, + }); }, delInbound(dbInboundId) { this.$confirm({ -- cgit v1.2.3