Ver código fonte

:recycle: pluralizing sticky for simplicity

tags/0.9.0
J 4 anos atrás
pai
commit
dec5b56814

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

16
                 card(:content="post" :type="type" :wide="type == 'exhibition' && i > 1 || type == 'event' && i > 1 ")
16
                 card(:content="post" :type="type" :wide="type == 'exhibition' && i > 1 || type == 'event' && i > 1 ")
17
 
17
 
18
         footer
18
         footer
19
-            button(@click="loadMorePosts") load more {{ type }}s...
20
             p {{ `${type} count: ${Object.values(posts).length}` }}
19
             p {{ `${type} count: ${Object.values(posts).length}` }}
21
             p {{ `show sidebar: ${sidebar}` }}
20
             p {{ `show sidebar: ${sidebar}` }}
22
         
21
         
45
     data() {
44
     data() {
46
         return {
45
         return {
47
             page: 1,
46
             page: 1,
48
-            perPage: 20
47
+            perPage: 10
49
         }
48
         }
50
     },
49
     },
51
     computed: {
50
     computed: {

+ 1
- 1
vue-theme/src/store/modules/sticky.js Ver arquivo

11
 }
11
 }
12
 
12
 
13
 const actions = {
13
 const actions = {
14
-    getAllSticky({ commit }) {
14
+    getAllStickys({ commit }) {
15
         commit('CLEAR_STICKY')
15
         commit('CLEAR_STICKY')
16
         commit('STICKY_LOADED', false)
16
         commit('STICKY_LOADED', false)
17
         return api.getSticky(posts => {
17
         return api.getSticky(posts => {

Carregando…
Cancelar
Salvar