|
|
@@ -44,6 +44,7 @@ export default {
|
|
44
|
44
|
sidebar: { type: Boolean },
|
|
45
|
45
|
grid: { type: Boolean },
|
|
46
|
46
|
sortBy: { type: String },
|
|
|
47
|
+ isWide: { type: Boolean }
|
|
47
|
48
|
},
|
|
48
|
49
|
mixins: [postTypeGetters, scrollTop, heroUtils],
|
|
49
|
50
|
data() {
|
|
|
@@ -201,13 +202,15 @@ export default {
|
|
201
|
202
|
if(!postTypes.includes(newType)) return console.warn('type not valid...')
|
|
202
|
203
|
|
|
203
|
204
|
// Ignore types with presorts so the sortBy watcher can handle them
|
|
204
|
|
- const ignore = ['event, exhibition']
|
|
|
205
|
+ const ignore = ['event', 'exhibition', 'artist']
|
|
205
|
206
|
if(ignore.includes(newType)) return
|
|
206
|
207
|
|
|
207
|
208
|
this.clearAndInitPostList('type change')
|
|
208
|
209
|
},
|
|
209
|
210
|
sortBy(newSort, oldSort) {
|
|
210
|
|
- this.clearAndInitPostList('sort change')
|
|
|
211
|
+ if(Object.values(sortTypes).includes(newSort)) {
|
|
|
212
|
+ this.clearAndInitPostList('sort change')
|
|
|
213
|
+ }
|
|
211
|
214
|
},
|
|
212
|
215
|
// Only fire if the sort type has changed
|
|
213
|
216
|
// and the post type is the same
|