From dc21f419327dce4bdb2e8b1f2ce37b2e19cb5e10 Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Tue, 16 Sep 2025 18:28:02 +0200 Subject: bug fix: del Depleted --- web/html/modals/inbound_info_modal.html | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'web/html/modals/inbound_info_modal.html') diff --git a/web/html/modals/inbound_info_modal.html b/web/html/modals/inbound_info_modal.html index 8b825ca8..5112ec1c 100644 --- a/web/html/modals/inbound_info_modal.html +++ b/web/html/modals/inbound_info_modal.html @@ -180,9 +180,9 @@ {{ i18n "status" }} - {{ i18n "enabled" }} - {{ i18n "disabled" }} - {{ i18n "depleted" }} + {{ i18n "enabled" }} + {{ i18n "disabled" }} + {{ i18n "depleted" }} @@ -587,6 +587,14 @@ } return infoModal.dbInbound.isEnable; }, + get isDepleted() { + const stats = this.infoModal.clientStats; + if (!stats) return false; + const now = new Date().getTime(); + const expired = stats.expiryTime > 0 && now >= stats.expiryTime; + const exhausted = stats.total > 0 && (stats.up + stats.down) >= stats.total; + return expired || exhausted; + }, }, methods: { copy(content) { -- cgit v1.2.3