Skip to content

A page beyond the last one shows an empty list without pagination; in the trash bin "Empty trash bin" is disabled #3662

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

A page beyond the last one shows an empty list without pagination; in the trash bin "Empty trash bin" is disabled. Cause: packages/web-pkg/src/composables/pagination/usePagination.ts:34-43 doesn't clamp the page; Pagination.vue:3 hides at one page; GenericTrash.vue:13,146 use paginatedResources.

Reproduction Steps

  1. Open a folder with 25 items at 20 per page, page 2, and delete those 5 elsewhere (or open ?page=9).
  2. Or: in a trash bin with 23 items, restore or delete all items on page 2.

Expected Outcome

The last existing page is shown.

Actual Outcome

"No files found" / "This trash bin is empty", no pagination; "Empty trash bin" is disabled while items remain.

Screenshot

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions