Przeglądaj źródła

:recycle: not messing with loading on getMoreArtists for list

tags/0.9.0
J 4 lat temu
rodzic
commit
c890a27c11

+ 1
- 4
vue-theme/src/pages/list.vue Wyświetl plik

@@ -87,12 +87,11 @@ export default {
87 87
     },
88 88
     methods: {
89 89
         async loadMorePosts(shouldClear) {
90
-            
91 90
             if(!this.keepFetching) return console.warn('Nothing left to fetch...')
92 91
 
93 92
             const getPosts = async  (params, dispatchType) => {
94 93
                 if(!this.type) throw `post type: ${this.type} not found...`
95
-                
94
+                console.log(`Getting more ${this.type} posts`)
96 95
                 // We always grab all pages on hero init so no need to do it here
97 96
                 return this.pType && this.type != 'page' ? await this.$store.dispatch(
98 97
                     `get${dispatchType}${this.pType}`,
@@ -140,8 +139,6 @@ export default {
140 139
             this._clearHero(this.$store)
141 140
             try {
142 141
                 const page = await this.getPage(type)
143
-                console.log('---')
144
-                console.log(page)
145 142
                 // We always set a hero no matter what
146 143
                 // Because the hero component will deal
147 144
                 // with how to render based on hero.url

+ 0
- 1
vue-theme/src/store/modules/artist.js Wyświetl plik

@@ -74,7 +74,6 @@ const actions = {
74 74
         return api.getByType({ type: 'artist', sort: sortType, params, cb: storeFetch })
75 75
     },
76 76
     getMoreArtists({ commit }, { sortType, params }) {
77
-        commit('ARTISTS_LOADED', false)
78 77
         const storeFetch = (artists => {
79 78
             let repacked = artists
80 79
             if(sortType == sortTypes.alpha) {

Ładowanie…
Anuluj
Zapisz