diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-05-17 01:31:56 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-05-17 01:31:56 +0300 |
| commit | 2d16eabc6e751e6233154a082bb6ccd2f816ec41 (patch) | |
| tree | c3ed0b35d3ad944e2fd722a4b000e3a598020bf9 /web/html/xui/inbounds.html | |
| parent | be50be75fe56a617713efe1cc56de3a14ec7e0c9 (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.html | 8 |
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 |
