|
|
@@ -172,6 +172,7 @@ export default {
|
|
172
|
172
|
// _setHeroInfo(post) {} from mixin
|
|
173
|
173
|
// _clearHero(store) {} from mixin
|
|
174
|
174
|
async checkAndSetHero(type) {
|
|
|
175
|
+ console.log('hero type :', type)
|
|
175
|
176
|
this._clearHero(this.$store)
|
|
176
|
177
|
try {
|
|
177
|
178
|
const page = await this.getPage(type)
|
|
|
@@ -238,8 +239,10 @@ export default {
|
|
238
|
239
|
if(!postTypes.includes(newType)) return console.warn('Type not valid...')
|
|
239
|
240
|
|
|
240
|
241
|
// Ignore some types with presorts so the sortBy watcher can handle them
|
|
241
|
|
- const ignore = ['artist', 'event', 'exibition']
|
|
242
|
|
- if(ignore.includes(newType)) return
|
|
|
242
|
+ const ignore = ['artist']
|
|
|
243
|
+ if(ignore.includes(newType)) {
|
|
|
244
|
+ return
|
|
|
245
|
+ }
|
|
243
|
246
|
// Reset the search term betweem loads
|
|
244
|
247
|
// so we initPostList() works correctly when
|
|
245
|
248
|
// navigating from search result to a type list page
|
|
|
@@ -248,9 +251,8 @@ export default {
|
|
248
|
251
|
},
|
|
249
|
252
|
// Fires when navigating between pages with different sorts
|
|
250
|
253
|
sortBy(newSort) {
|
|
251
|
|
- // console.log('sort changed :', newSort)
|
|
252
|
254
|
if(!Object.values(sortTypes).includes(newSort)) return
|
|
253
|
|
- this.initPostList()
|
|
|
255
|
+ // this.initPostList()
|
|
254
|
256
|
},
|
|
255
|
257
|
},
|
|
256
|
258
|
mounted() {
|