|
|
@@ -79,9 +79,9 @@ export default {
|
|
79
|
79
|
this.$store.commit(`${uppercaseType}_LOADED`)
|
|
80
|
80
|
},
|
|
81
|
81
|
async loadMorePosts() {
|
|
82
|
|
- console.log('trying to load for: ', this.$route)
|
|
|
82
|
+ // console.log('trying to load for: ', this.$route)
|
|
83
|
83
|
const type = typeFromRoute(this.$route)
|
|
84
|
|
- if(!type) return console.warn(`type: ${type} not found...`)
|
|
|
84
|
+ if(!type) return console.error(`type: ${type} not found...`)
|
|
85
|
85
|
if(!this.keepFetching) return console.warn('nothing left to fetch...')
|
|
86
|
86
|
|
|
87
|
87
|
console.warn(`loading more ${type} posts...`)
|
|
|
@@ -121,7 +121,7 @@ export default {
|
|
121
|
121
|
|
|
122
|
122
|
// Stop trying to load more posts
|
|
123
|
123
|
if(res && !res.length) {
|
|
124
|
|
- console.warn('nothing left to get...')
|
|
|
124
|
+ console.warn('did not receive response...', res, this.type)
|
|
125
|
125
|
this.keepFetching = false
|
|
126
|
126
|
}
|
|
127
|
127
|
this.loadingFetched = false
|
|
|
@@ -148,7 +148,7 @@ export default {
|
|
148
|
148
|
if(!this.type) return console.error('cannot setup intersection handler for undefined type')
|
|
149
|
149
|
if(this.type == 'episode') return console.warn('intersection handler not setup for episode')
|
|
150
|
150
|
|
|
151
|
|
- console.warn('setting up intersection handler for:', this.type)
|
|
|
151
|
+ // console.warn('setting up intersection handler for:', this.type)
|
|
152
|
152
|
const footerEl = document.querySelector(INTERSECT_SELECTION)
|
|
153
|
153
|
if(!footerEl) return
|
|
154
|
154
|
|
|
|
@@ -189,8 +189,8 @@ export default {
|
|
189
|
189
|
console.log('new:', newType)
|
|
190
|
190
|
|
|
191
|
191
|
if(!postTypes.includes(newType)) return console.warn('type not found...')
|
|
192
|
|
- this.setIntersectionLoader()
|
|
193
|
192
|
this.clearAndInitPostList()
|
|
|
193
|
+ this.setIntersectionLoader()
|
|
194
|
194
|
},
|
|
195
|
195
|
},
|
|
196
|
196
|
mounted() {
|