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')} );