|
|
@@ -158,7 +158,9 @@ export default {
|
|
158
|
158
|
setIntersectionLoader() {
|
|
159
|
159
|
if(!this.type) return console.error('cannot setup intersection handler for undefined type')
|
|
160
|
160
|
if(this._getSortBy() == sortTypes.material && this.type == 'artist') return console.error('cannot setup intersection handler for material sort')
|
|
161
|
|
-
|
|
|
161
|
+
|
|
|
162
|
+ console.log('Setting interesection loader...')
|
|
|
163
|
+
|
|
162
|
164
|
const footerEl = document.querySelector(INTERSECT_SELECTOR)
|
|
163
|
165
|
if(!footerEl) return
|
|
164
|
166
|
|
|
|
@@ -205,6 +207,11 @@ export default {
|
|
205
|
207
|
this.clearAndInitPostList()
|
|
206
|
208
|
},
|
|
207
|
209
|
$route(to, from) {
|
|
|
210
|
+ if(this._getSortBy() == sortTypes.material && this.type == 'artist') {
|
|
|
211
|
+ this.unsetIntersectionLoader()
|
|
|
212
|
+ } else if(this._getSortBy() == sortTypes.alpha && this.type == 'artist') {
|
|
|
213
|
+ this.setIntersectionLoader()
|
|
|
214
|
+ }
|
|
208
|
215
|
// Check if we changed sort method
|
|
209
|
216
|
// from no sort to sorted
|
|
210
|
217
|
// or sorted to no sort
|