mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 10:58:20 -07:00
Show total count when no pagination is applied
If no pagination is applied (or disabled in the settings), there is no view on how many items you have in your library. By showing the pagination text (without the pagination buttons) it's still visible for the user how many items are listed in the library.
This commit is contained in:
parent
7fb1b462e5
commit
53aaa35a3b
@ -88,6 +88,15 @@ const Pagination: FC<PaginationProps> = ({ viewQuerySettings, setViewQuerySettin
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
{!showControls && (
|
||||||
|
<div className='listPaging' style={{ display: 'flex', alignItems: 'center' }}>
|
||||||
|
|
||||||
|
<span>
|
||||||
|
{globalize.translate('ListPaging', (totalRecordCount ? startIndex + 1 : 0), totalRecordCount, totalRecordCount)}
|
||||||
|
</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -90,6 +90,10 @@ export function getQueryPagingHtml (options) {
|
|||||||
html += '<span style="vertical-align:middle;">';
|
html += '<span style="vertical-align:middle;">';
|
||||||
html += globalize.translate('ListPaging', totalRecordCount ? startIndex + 1 : 0, recordsEnd, totalRecordCount);
|
html += globalize.translate('ListPaging', totalRecordCount ? startIndex + 1 : 0, recordsEnd, totalRecordCount);
|
||||||
html += '</span>';
|
html += '</span>';
|
||||||
|
} else {
|
||||||
|
html += '<span style="vertical-align:middle;">';
|
||||||
|
html += globalize.translate('ListPaging', totalRecordCount ? startIndex + 1 : 0, totalRecordCount, totalRecordCount);
|
||||||
|
html += '</span>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (showControls || options.viewButton || options.filterButton || options.sortButton || options.addLayoutButton) {
|
if (showControls || options.viewButton || options.filterButton || options.sortButton || options.addLayoutButton) {
|
||||||
|
Loading…
Reference in New Issue
Block a user