From 2d16eabc6e751e6233154a082bb6ccd2f816ec41 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Wed, 17 May 2023 02:01:56 +0330 Subject: [feature] interactive deplete soon Co-Authored-By: Alireza Ahmadi --- web/html/xui/inbounds.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'web/html/xui/inbounds.html') diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html index b689a586..f11d5a79 100644 --- a/web/html/xui/inbounds.html +++ b/web/html/xui/inbounds.html @@ -790,10 +790,10 @@ clientStats = dbInbound.clientStats.find(stats => stats.email === email) return clientStats ? clientStats.down : 0 }, - isTrafficExhausted(dbInbound, email) { - if (email.length == 0) return false - clientStats = dbInbound.clientStats.find(stats => stats.email === email) - return clientStats ? clientStats.down + clientStats.up > clientStats.total : false + statsColor(dbInbound, email) { + if(email.length == 0) return 'blue'; + clientStats = dbInbound.clientStats.find(stats => stats.email === email); + return usageColor(clientStats.down + clientStats.up, this.trafficDiff, clientStats.total); }, isClientEnabled(dbInbound, email) { clientStats = dbInbound.clientStats ? dbInbound.clientStats.find(stats => stats.email === email) : null -- cgit v1.2.3