|
|
@@ -203,15 +203,13 @@ export default {
|
|
203
|
203
|
// a list page, to another list page
|
|
204
|
204
|
type(newType, oldType) {
|
|
205
|
205
|
if(!postTypes.includes(newType)) return console.warn('type not found...')
|
|
206
|
|
- this.setIntersectionLoader()
|
|
|
206
|
+
|
|
|
207
|
+ if(this._getSortBy() != sortTypes.material) {
|
|
|
208
|
+ this.setIntersectionLoader()
|
|
|
209
|
+ }
|
|
207
|
210
|
this.clearAndInitPostList()
|
|
208
|
211
|
},
|
|
209
|
212
|
$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
|
|
- }
|
|
215
|
213
|
// Check if we changed sort method
|
|
216
|
214
|
// from no sort to sorted
|
|
217
|
215
|
// or sorted to no sort
|
|
|
@@ -228,7 +226,9 @@ export default {
|
|
228
|
226
|
},
|
|
229
|
227
|
mounted() {
|
|
230
|
228
|
this.clearAndInitPostList()
|
|
231
|
|
- this.setIntersectionLoader()
|
|
|
229
|
+ if(this._getSortBy() != sortTypes.material) {
|
|
|
230
|
+ this.setIntersectionLoader()
|
|
|
231
|
+ }
|
|
232
|
232
|
},
|
|
233
|
233
|
beforeDestroy() {
|
|
234
|
234
|
this.unsetIntersectionLoader()
|