Преглед изворни кода

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

tags/0.9.0
J пре 4 година
родитељ
комит
9bbdfddab4
1 измењених фајлова са 8 додато и 2 уклоњено
  1. 8
    2
      vue-theme/src/pages/list.vue

+ 8
- 2
vue-theme/src/pages/list.vue Прегледај датотеку

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

Loading…
Откажи
Сачувај