mirror of https://github.com/pixelfed/pixelfed.git
Update Profile.vue component, fix pagination bug
This commit is contained in:
parent
ed09e54158
commit
46767810a4
|
@ -760,8 +760,13 @@
|
||||||
self.ids.push(d.id);
|
self.ids.push(d.id);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
let max = Math.min(...this.ids);
|
||||||
|
if(max == this.max_id) {
|
||||||
|
$state.complete();
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.min_id = Math.max(...this.ids);
|
this.min_id = Math.max(...this.ids);
|
||||||
this.max_id = Math.min(...this.ids);
|
this.max_id = max;
|
||||||
$state.loaded();
|
$state.loaded();
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue