Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2023-05-17 01:31:56 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-05-17 01:31:56 +0300
commit2d16eabc6e751e6233154a082bb6ccd2f816ec41 (patch)
treec3ed0b35d3ad944e2fd722a4b000e3a598020bf9 /web/html/xui/inbounds.html
parentbe50be75fe56a617713efe1cc56de3a14ec7e0c9 (diff)
[feature] interactive deplete soon
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html/xui/inbounds.html')
-rw-r--r--web/html/xui/inbounds.html8
1 files changed, 4 insertions, 4 deletions
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