|
|
@@ -86,11 +86,8 @@ export default {
|
|
86
|
86
|
if(!this.keepFetching) return console.warn('nothing left to fetch...')
|
|
87
|
87
|
|
|
88
|
88
|
this.loadingFetched = true
|
|
89
|
|
- console.warn(
|
|
90
|
|
- `loading page ${this.page + 1} of ${type} posts:
|
|
91
|
|
- ${this.page * this.perPage + 1} through
|
|
92
|
|
- ${(this.page + 1) * this.perPage}`
|
|
93
|
|
- )
|
|
|
89
|
+ console.warn(`loading page ${this.page + 1} of ${type} posts: ${this.page * this.perPage + 1} to ${(this.page + 1) * this.perPage}`)
|
|
|
90
|
+
|
|
94
|
91
|
this.page++
|
|
95
|
92
|
await this.getPosts()
|
|
96
|
93
|
},
|
|
|
@@ -180,7 +177,9 @@ export default {
|
|
180
|
177
|
clearAndInitPostList() {
|
|
181
|
178
|
this.page = 0
|
|
182
|
179
|
this.keepFetching = true
|
|
183
|
|
-
|
|
|
180
|
+
|
|
|
181
|
+ this.checkAndSetHero()
|
|
|
182
|
+
|
|
184
|
183
|
// Fires when loading from home
|
|
185
|
184
|
// Clear any preloaded posts (from home, etc.)
|
|
186
|
185
|
this.clearAllPosts()
|