|
|
@@ -212,8 +212,14 @@ export default {
|
|
212
|
212
|
console.log('---')
|
|
213
|
213
|
console.log('to :', to)
|
|
214
|
214
|
console.log('from :', from)
|
|
215
|
|
- if(from.fullPath.includes(sortTypes.material)) this.setIntersectionLoader()
|
|
216
|
|
- if(to.fullPath.includes(sortTypes.material)) this.unsetIntersectionLoader()
|
|
|
215
|
+
|
|
|
216
|
+ if(!to.fullPath.includes(sortTypes.material) && from.fullPath.includes(sortTypes.material)) {
|
|
|
217
|
+ this.setIntersectionLoader()
|
|
|
218
|
+ }
|
|
|
219
|
+ if(to.fullPath.includes(sortTypes.material)) {
|
|
|
220
|
+ this.unsetIntersectionLoader()
|
|
|
221
|
+ }
|
|
|
222
|
+
|
|
217
|
223
|
|
|
218
|
224
|
// Check if we changed sort method
|
|
219
|
225
|
// from no sort to sorted
|