docker-registry-frontend icon indicating copy to clipboard operation
docker-registry-frontend copied to clipboard

Fix issues with repository list pagination.

Open jonathanhood opened this issue 9 years ago • 0 comments

Pagination had a few bugs: 1. The 'next' button would be improperly disabled in most cases. 2. The 'last page' button would be improperly disabled in most cases. 3. The 'last' repository would not be properly selected when picking the 'next' button. 4. The listing did not properly deal with situations where a repository only has a 'name' (i.e. "myrepo" vs "jonathanhood/myrepo"). The code has been updated to deal with both cases appropriately. 5. The "link" header parsing has been removed in favor of some simpler behavior. The link header is only used to check if this page is the last page and is thrown away. The proper 'last' repository is now calculated based on the returned array instead, which was simpler than parsing it out.

jonathanhood avatar Apr 28 '16 17:04 jonathanhood