mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 19:49:20 +03:00
Bugfix: hide pagination when search has 0 messages
This commit is contained in:
parent
2bcaf3c6ad
commit
d59a326920
2 changed files with 3 additions and 3 deletions
|
|
@ -121,7 +121,7 @@ computedPaginatorHelper = (koCurrentPage, koPageCount) => {
|
|||
next = 0,
|
||||
limit = 2;
|
||||
|
||||
if (1 < pageCount || (0 < pageCount && pageCount < currentPage)) {
|
||||
if (1 < pageCount) {
|
||||
if (pageCount < currentPage) {
|
||||
fAdd(pageCount);
|
||||
prev = pageCount;
|
||||
|
|
|
|||
|
|
@ -879,8 +879,8 @@ class MailClient
|
|||
}
|
||||
}
|
||||
|
||||
if (\count($aUids)) {
|
||||
$oMessageCollection->totalEmails = \count($aUids);
|
||||
$oMessageCollection->totalEmails = \count($aUids);
|
||||
if ($oMessageCollection->totalEmails) {
|
||||
$aUids = \array_slice($aUids, $oParams->iOffset, $oParams->iLimit);
|
||||
$this->MessageListByRequestIndexOrUids($oMessageCollection, new SequenceSet($aUids), $aAllThreads, $aUnseenUIDs);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue