|
|
@@ -209,9 +209,11 @@ export default {
|
|
209
|
209
|
},
|
|
210
|
210
|
$route(to, from) {
|
|
211
|
211
|
// Reset the intersection loader if navigating AWAY from material sort page
|
|
212
|
|
- if(from.fullPath.includes(sortTypes.material)) {
|
|
213
|
|
- this.setIntersectionLoader()
|
|
214
|
|
- }
|
|
|
212
|
+ console.log('---')
|
|
|
213
|
+ console.log('to :', to)
|
|
|
214
|
+ console.log('from :', from)
|
|
|
215
|
+ if(from.fullPath.includes(sortTypes.material)) this.setIntersectionLoader()
|
|
|
216
|
+ if(to.fullPath.includes(sortTypes.material)) this.unsetIntersectionLoader()
|
|
215
|
217
|
|
|
216
|
218
|
// Check if we changed sort method
|
|
217
|
219
|
// from no sort to sorted
|