|
|
@@ -120,6 +120,7 @@ export default {
|
|
120
|
120
|
let dispatchAction = `getMore${this.pType}`
|
|
121
|
121
|
let params = this._getDispatchParams()
|
|
122
|
122
|
|
|
|
123
|
+ // For material sort we grab EVERYTHING
|
|
123
|
124
|
if(this._getSortBy() == sortTypes.material && this.type == 'artist') {
|
|
124
|
125
|
dispatchAction = `getAll${this.pType}`
|
|
125
|
126
|
params = this._getDispatchParams(-1)
|
|
|
@@ -212,17 +213,18 @@ export default {
|
|
212
|
213
|
// this.clearAndInitPostList()
|
|
213
|
214
|
},
|
|
214
|
215
|
$route(to, from) {
|
|
215
|
|
- // Always unset and reset the intersection loader
|
|
216
|
|
- this.unsetIntersectionLoader()
|
|
217
|
|
- if(!toPathInfo.sortBy != sortTypes.material) {
|
|
218
|
|
- this.setIntersectionLoader()
|
|
219
|
|
- }
|
|
220
|
216
|
console.log('---')
|
|
221
|
217
|
const toPathInfo = this.routeInfoFromPath(to.fullPath)
|
|
222
|
218
|
const fromPathInfo = this.routeInfoFromPath(from.fullPath)
|
|
223
|
219
|
console.log('to :', toPathInfo)
|
|
224
|
220
|
console.log('from :', fromPathInfo)
|
|
225
|
221
|
|
|
|
222
|
+ // Always unset and reset the intersection loader
|
|
|
223
|
+ this.unsetIntersectionLoader()
|
|
|
224
|
+ if(!toPathInfo.sortBy != sortTypes.material) {
|
|
|
225
|
+ this.setIntersectionLoader()
|
|
|
226
|
+ }
|
|
|
227
|
+
|
|
226
|
228
|
// Check if we changed sort method
|
|
227
|
229
|
// from no sort to sorted
|
|
228
|
230
|
// or sorted to no sort
|