mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2025-04-26 15:09:53 +03:00
fix(tag-list): missing argument tagsPerPage
for getNumPages
function
This commit is contained in:
parent
7991442fce
commit
e79a20a5e5
3 changed files with 4 additions and 4 deletions
2
dist/docker-registry-ui.js
vendored
2
dist/docker-registry-ui.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "docker-registry-ui",
|
||||
"version": "2.5.5",
|
||||
"version": "2.5.6",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"format": "npm run format-html && npm run format-js && npm run format-riot",
|
||||
|
|
|
@ -129,7 +129,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
.sort(self.tagComparator);
|
||||
window.requestAnimationFrame(self.onResize);
|
||||
self.update({
|
||||
page: Math.min(state.page, getNumPages(tags)),
|
||||
page: Math.min(state.page, getNumPages(tags, props.tagsPerPage)),
|
||||
tags,
|
||||
});
|
||||
} else if (this.status === 404) {
|
||||
|
@ -153,7 +153,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
},
|
||||
|
||||
onPageUpdate(idx) {
|
||||
const labels = getPageLabels(this.state.page, getNumPages(this.state.tags));
|
||||
const labels = getPageLabels(this.state.page, getNumPages(this.state.tags, this.props.tagsPerPage));
|
||||
const page = labels[idx].page;
|
||||
this.update({
|
||||
page: page,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue