feat: table header shows filtered count vs loaded vs API total
This commit is contained in:
parent
3cb312e6ec
commit
0df5c344b5
1 changed files with 5 additions and 1 deletions
|
|
@ -894,7 +894,11 @@ function HeldMailTab() {
|
|||
<div className="px-4 py-2 bg-muted/40 border-b">
|
||||
<span className="text-sm font-medium">
|
||||
{filtered.length.toLocaleString()} held message{filtered.length !== 1 ? 's' : ''}
|
||||
{currentTenant?.totalCount > messages.length ? ` (showing ${messages.length.toLocaleString()} of ${currentTenant.totalCount.toLocaleString()} total)` : ''}
|
||||
{filtered.length < messages.length
|
||||
? ` — filtered from ${messages.length.toLocaleString()}${currentTenant?.totalCount > messages.length ? ` of ${currentTenant.totalCount.toLocaleString()} total` : ''}`
|
||||
: currentTenant?.totalCount > messages.length
|
||||
? ` (showing ${messages.length.toLocaleString()} of ${currentTenant.totalCount.toLocaleString()} total)`
|
||||
: ''}
|
||||
</span>
|
||||
</div>
|
||||
<div className="overflow-x-auto">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue