Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Home Screen Pagination Issue #7350

Closed
ajpri opened this issue Jan 31, 2024 · 2 comments
Closed

Home Screen Pagination Issue #7350

ajpri opened this issue Jan 31, 2024 · 2 comments

Comments

@ajpri
Copy link

ajpri commented Jan 31, 2024

Are you using XOA or XO from the sources?

XO from the sources

Which release channel?

None

Provide your commit number

33603

Describe the bug

By default, the Home screen shows 20 VMs. If you have more than 10 VMs, you can adjust the pagination to show 10 VMs per page. If you set the items per page to 10, go onto page 2 (the url parameter "p=2") then change the items per page back to 20, no VMs will be visible. As p=2 is still in the URL.

Error message

No response

To reproduce

  1. Have more than 10 VMs running/shown.
  2. Change the "items per page" (below green "New VM" button) to 10.
  3. Go to page 2.
  4. While still on page 2, change the items per page back to 20.
  5. Observe blank screen with no VMs.

Expected behavior

When changing the pagination, also change the page #.

Screenshots

image
image
image

Node

18.19.0

Hypervisor

XCP-ng 8.2

Additional context

No response

@julien-f
Copy link
Member

Indeed, changing the number of displayed items should select the first page.

@ajpri
Copy link
Author

ajpri commented Jan 31, 2024

Playing around with this. It does appear that Backup->Restore, Settings->Logs and Tasks->XO Tasks section does behave for showing element rows. However if you change the items per page again where multiple rows pages are created again, you are brought to the page you were on instead of reverting to page one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants