fix(tag-list): missing argument `tagsPerPage` for `getNumPages` function
This commit is contained in:
parent
7991442fce
commit
e79a20a5e5
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "docker-registry-ui",
|
"name": "docker-registry-ui",
|
||||||
"version": "2.5.5",
|
"version": "2.5.6",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"format": "npm run format-html && npm run format-js && npm run format-riot",
|
"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);
|
.sort(self.tagComparator);
|
||||||
window.requestAnimationFrame(self.onResize);
|
window.requestAnimationFrame(self.onResize);
|
||||||
self.update({
|
self.update({
|
||||||
page: Math.min(state.page, getNumPages(tags)),
|
page: Math.min(state.page, getNumPages(tags, props.tagsPerPage)),
|
||||||
tags,
|
tags,
|
||||||
});
|
});
|
||||||
} else if (this.status === 404) {
|
} else if (this.status === 404) {
|
||||||
|
@ -153,7 +153,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
},
|
},
|
||||||
|
|
||||||
onPageUpdate(idx) {
|
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;
|
const page = labels[idx].page;
|
||||||
this.update({
|
this.update({
|
||||||
page: page,
|
page: page,
|
||||||
|
|
Loading…
Reference in New Issue