Update components

This commit is contained in:
Daniel Supernault 2021-01-28 20:08:06 -07:00
parent 4abfe76a49
commit f38d2a09a4
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
3 changed files with 63 additions and 15 deletions

View file

@ -165,6 +165,12 @@ export default {
return;
}
if(this.page == 7 && this.stats.popular.places == null) {
this.page = 9;
window.history.pushState({}, {}, '/i/my2020?v=20&ned=0&sl=9');
return;
}
if(this.page == 8) {
axios.post('/api/pixelfed/v2/seasonal/yir', {
'profile_id' : this.user.profile_id
@ -178,6 +184,11 @@ export default {
if(this.page == 1) {
return;
}
if(this.page == 9 && this.stats.popular.places == null) {
this.page = 7;
window.history.pushState({}, {}, '/i/my2020?v=20&ned=0&sl=7');
return;
}
--this.page;
if(this.page == 1) {
window.history.pushState({}, {}, '/i/my2020');