Hide pagination & page size when not necessary (#2122)

* UI: Hide pagination and page size when not necessary

* UI: Use pager component for notifications list

* UI: Use pager component for wallet transactions list

* UI: Improve pager component

* Fix from code review
This commit is contained in:
Dennis Reimann
2020-12-12 07:21:37 +01:00
committed by GitHub
parent 282d0abb62
commit ed497cab99
8 changed files with 71 additions and 199 deletions

View File

@@ -290,6 +290,13 @@ namespace BTCPayServer.Controllers
Count = count,
Total = 0
};
if (labelFilter != null)
{
model.PaginationQuery = new Dictionary<string, object>
{
{"labelFilter", labelFilter}
};
}
if (transactions == null)
{
TempData.SetStatusMessageModel(new StatusMessageModel()