Преглед на файлове

:recycle: ignore always sorted types

tags/0.9.0
J преди 4 години
родител
ревизия
2cf886d665
променени са 1 файла, в които са добавени 6 реда и са изтрити 1 реда
  1. 6
    1
      vue-theme/src/pages/list.vue

+ 6
- 1
vue-theme/src/pages/list.vue Целия файл

@@ -156,7 +156,7 @@ export default {
156 156
             // Always unset before setting the intersection loader
157 157
             this.unsetIntersectionLoader()
158 158
 
159
-            console.warn('Setting interesection loader...')
159
+            // console.warn('Setting interesection loader...')
160 160
             this.observer = new IntersectionObserver(entries => {
161 161
                 entries.forEach(entry => {
162 162
                     if (!entry.isIntersecting || this.loadingFetched) return
@@ -199,6 +199,11 @@ export default {
199 199
         // and the post type has changed
200 200
         type(newType, oldType) {
201 201
             if(!postTypes.includes(newType)) return console.warn('type not valid...')
202
+
203
+            // Ignore types with presorts so the sortBy watcher can handle them
204
+            const ignore = ['event, exhibition']
205
+            if(ignore.includes(newType)) return
206
+            
202 207
             this.clearAndInitPostList('type change')
203 208
         },
204 209
         sortBy(newSort, oldSort) {

Loading…
Отказ
Запис