Ver código fonte

:recycle: trying set only on non-material sorts

tags/0.9.0
J 4 anos atrás
pai
commit
eade56649d
1 arquivos alterados com 7 adições e 7 exclusões
  1. 7
    7
      vue-theme/src/pages/list.vue

+ 7
- 7
vue-theme/src/pages/list.vue Ver arquivo

@@ -203,15 +203,13 @@ export default {
203 203
         // a list page, to another list page
204 204
         type(newType, oldType) {
205 205
             if(!postTypes.includes(newType)) return console.warn('type not found...')
206
-            this.setIntersectionLoader()
206
+                
207
+            if(this._getSortBy() != sortTypes.material) {
208
+                this.setIntersectionLoader()
209
+            }
207 210
             this.clearAndInitPostList()
208 211
         },
209 212
         $route(to, from) {
210
-            if(this._getSortBy() == sortTypes.material && this.type == 'artist') {
211
-                this.unsetIntersectionLoader()
212
-            } else if(this._getSortBy() == sortTypes.alpha && this.type == 'artist') {
213
-                this.setIntersectionLoader()
214
-            }
215 213
             // Check if we changed sort method
216 214
             // from no sort to sorted
217 215
             // or sorted to no sort
@@ -228,7 +226,9 @@ export default {
228 226
     },
229 227
     mounted() {
230 228
         this.clearAndInitPostList()
231
-        this.setIntersectionLoader()
229
+        if(this._getSortBy() != sortTypes.material) {
230
+            this.setIntersectionLoader()
231
+        }
232 232
     },
233 233
     beforeDestroy() {
234 234
         this.unsetIntersectionLoader()

Carregando…
Cancelar
Salvar