Selaa lähdekoodia

:recycle: always clearing intersection loader

tags/0.9.0
J 4 vuotta sitten
vanhempi
commit
b2ef977bfe
1 muutettua tiedostoa jossa 2 lisäystä ja 4 poistoa
  1. 2
    4
      vue-theme/src/pages/list.vue

+ 2
- 4
vue-theme/src/pages/list.vue Näytä tiedosto

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

Loading…
Peruuta
Tallenna