Selaa lähdekoodia

:recycle: adding params to sidebar call for events and exhibitions

tags/0.9.0
J 4 vuotta sitten
vanhempi
commit
79a67498a6

+ 5
- 1
vue-theme/src/components/sidebars/events.vue Näytä tiedosto

@@ -35,7 +35,11 @@ export default {
35 35
             const upcoming = this.$store.dispatch(
36 36
                 `getAllEvents`,
37 37
                 {
38
-                    sortType: sortTypes.currentAndUpcoming
38
+                    sortType: sortTypes.currentAndUpcoming,
39
+                    params: {
40
+                        limit: 99,
41
+                        page: 1
42
+                    }
39 43
                 }
40 44
             )
41 45
             if (upcoming.length < 1) {

+ 5
- 1
vue-theme/src/components/sidebars/exhibitions.vue Näytä tiedosto

@@ -35,7 +35,11 @@ export default {
35 35
             const upcoming = this.$store.dispatch(
36 36
                 `getAllExhibitions`,
37 37
                 {
38
-                    sortType: sortTypes.currentAndUpcoming
38
+                    sortType: sortTypes.currentAndUpcoming,
39
+                    params: {
40
+                        limit: 99,
41
+                        page: 1
42
+                    }
39 43
                 }
40 44
             )
41 45
             if (upcoming.length < 1) {

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

@@ -198,10 +198,7 @@ export default {
198 198
             // Check if we changed sort method
199 199
             // from no sort to sorted
200 200
             // or sorted to no sort
201
-            // or sort to a different sort(?)
202
-            console.log('to:', to.fullPath.includes(this.sortBy))
203
-            console.log('from:', from.fullPath.includes(this.sortBy))
204
-            console.log('sort:', this.sortBy)
201
+            // or sort to a different sort(?))
205 202
             if(
206 203
                 from.fullPath.includes(this.sortBy) ||
207 204
                 (!to.fullPath.includes(this.sortBy) && !from.fullPath.includes(this.sortBy))

Loading…
Peruuta
Tallenna