Parcourir la source

:recycle: trying set intersection loader navigating away from material and unsetting navigating to

tags/0.9.0
J il y a 4 ans
Parent
révision
9bbdfddab4
1 fichiers modifiés avec 8 ajouts et 2 suppressions
  1. 8
    2
      vue-theme/src/pages/list.vue

+ 8
- 2
vue-theme/src/pages/list.vue Voir le fichier

@@ -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

Chargement…
Annuler
Enregistrer