Update components
This commit is contained in:
parent
4abfe76a49
commit
f38d2a09a4
3 changed files with 63 additions and 15 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue