Ver código fonte

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

tags/0.9.0
J 4 anos atrás
pai
commit
79a67498a6

+ 5
- 1
vue-theme/src/components/sidebars/events.vue Ver arquivo

35
             const upcoming = this.$store.dispatch(
35
             const upcoming = this.$store.dispatch(
36
                 `getAllEvents`,
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
             if (upcoming.length < 1) {
45
             if (upcoming.length < 1) {

+ 5
- 1
vue-theme/src/components/sidebars/exhibitions.vue Ver arquivo

35
             const upcoming = this.$store.dispatch(
35
             const upcoming = this.$store.dispatch(
36
                 `getAllExhibitions`,
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
             if (upcoming.length < 1) {
45
             if (upcoming.length < 1) {

+ 1
- 4
vue-theme/src/pages/list.vue Ver arquivo

198
             // Check if we changed sort method
198
             // Check if we changed sort method
199
             // from no sort to sorted
199
             // from no sort to sorted
200
             // or sorted to no sort
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
             if(
202
             if(
206
                 from.fullPath.includes(this.sortBy) ||
203
                 from.fullPath.includes(this.sortBy) ||
207
                 (!to.fullPath.includes(this.sortBy) && !from.fullPath.includes(this.sortBy))
204
                 (!to.fullPath.includes(this.sortBy) && !from.fullPath.includes(this.sortBy))

Carregando…
Cancelar
Salvar