monosidev/monosi

Show pagination only when multiple pages exist in table

Closed this issue · 0 comments

Description

Every table view in the UI has pagination that shows a single number when there's less than one page.

Expected behavior

Pagination should only be rendered if there are multiple table pages. This should be done by checking if there is more than a certain amount of elements and then displaying pagination accordingly.

Steps to reproduce

  1. Go to any page that has a table view (data sources, integrations, monitors, etc.)
  2. Notice that the pagination is showing but the table only has one page

Additional context

image