|
|
@@ -191,12 +191,14 @@ export default {
|
|
191
|
191
|
type(newType) {
|
|
192
|
192
|
if(!postTypes.includes(newType)) return console.warn('Type not valid...')
|
|
193
|
193
|
|
|
194
|
|
- // Ignore types with presorts so the sortBy watcher can handle them
|
|
195
|
|
- const ignore = ['event', 'exhibition', 'artist']
|
|
|
194
|
+ // Ignore some types with presorts so the sortBy watcher can handle them
|
|
|
195
|
+ const ignore = ['artist']
|
|
196
|
196
|
if(ignore.includes(newType)) return
|
|
197
|
197
|
this.initPostList()
|
|
198
|
198
|
},
|
|
|
199
|
+ // Fires when navigating between pages with different sorts
|
|
199
|
200
|
sortBy(newSort) {
|
|
|
201
|
+ // console.log('sort changed :', newSort)
|
|
200
|
202
|
if(!Object.values(sortTypes).includes(newSort)) return
|
|
201
|
203
|
this.initPostList()
|
|
202
|
204
|
}
|