From cfd3b3436288c7f9f5ff9a2b0b9df5e5a203349e Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Mon, 1 Jun 2026 08:50:45 +0200 Subject: [PATCH] feat(clients): show last-online tooltip on the depleted tag too The Online column already surfaced last-online on the offline tag; extend the same tooltip to the depleted (ended) tag so a depleted client's last activity is visible without enabling it. --- frontend/src/pages/clients/ClientsPage.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/src/pages/clients/ClientsPage.tsx b/frontend/src/pages/clients/ClientsPage.tsx index 68118548..0873770b 100644 --- a/frontend/src/pages/clients/ClientsPage.tsx +++ b/frontend/src/pages/clients/ClientsPage.tsx @@ -627,15 +627,20 @@ export default function ClientsPage() { width: 90, render: (_v, record) => { const bucket = clientBucket(record); - if (bucket === 'depleted') return {t('depleted')}; + const lastOnline = record.traffic?.lastOnline ?? 0; + const lastOnlineTitle = `${t('lastOnline')}: ${lastOnline > 0 ? IntlUtil.formatDate(lastOnline, datepicker) : '-'}`; + if (bucket === 'depleted') return ( + + {t('depleted')} + + ); if (record.enable && isOnline(record.email)) return ( {t('pages.clients.online')} ); if (!record.enable) return {t('disabled')}; if (bucket === 'expiring') return {t('depletingSoon')}; - const lastOnline = record.traffic?.lastOnline ?? 0; return ( - 0 ? IntlUtil.formatDate(lastOnline, datepicker) : '-'}`}> + {t('pages.clients.offline')} );