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/inbound_info_modal.html | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'web/html/xui/inbound_info_modal.html') diff --git a/web/html/xui/inbound_info_modal.html b/web/html/xui/inbound_info_modal.html index d9d0637c..be2bcf4a 100644 --- a/web/html/xui/inbound_info_modal.html +++ b/web/html/xui/inbound_info_modal.html @@ -89,7 +89,7 @@ {{ i18n "pages.inbounds.expireDate" }} - + [[ sizeFormat(infoModal.clientStats['up']) ]] / [[ sizeFormat(infoModal.clientStats['down']) ]] ([[ sizeFormat(infoModal.clientStats['up'] + infoModal.clientStats['down']) ]]) @@ -101,7 +101,7 @@ @@ -266,10 +266,7 @@ }); }, statsColor(stats) { - if (!stats) return 'blue' - if (stats['total'] === 0) return 'blue' - else if (stats['total'] > 0 && (stats['down'] + stats['up']) < stats['total']) return 'cyan' - else return 'red' + return usageColor(stats.up + stats.down, app.trafficDiff, stats.total); } }, }); -- cgit v1.2.3