|
|
@@ -33,7 +33,7 @@ import card from '@/components/card'
|
|
33
|
33
|
import sidebar from '@/components/sidebars/sidebar'
|
|
34
|
34
|
import { postTypeGetters, scrollTop, heroUtils } from './mixin-post-types'
|
|
35
|
35
|
|
|
36
|
|
-import { postTypes, convertTitleCase, typeFromRoute } from '@/utils/helpers'
|
|
|
36
|
+import { postTypes, sortTypes, convertTitleCase, typeFromRoute } from '@/utils/helpers'
|
|
37
|
37
|
|
|
38
|
38
|
const TIMEOUT = 1
|
|
39
|
39
|
const INTERSECT_SELECTOR = '.page--list > article footer'
|
|
|
@@ -117,7 +117,11 @@ export default {
|
|
117
|
117
|
await this._getAll('episode', this.$store)
|
|
118
|
118
|
const ignore = [`getMoreEpisodes`, 'getMorePages']
|
|
119
|
119
|
|
|
120
|
|
- const dispatchAction = `getMore${this.pType}`
|
|
|
120
|
+ let dispatchAction = `getMore${this.pType}`
|
|
|
121
|
+ if(this._getSortBy() == sortTypes.material && this.type == 'artist') {
|
|
|
122
|
+ dispatchAction = `getAll${this.pType}`
|
|
|
123
|
+ }
|
|
|
124
|
+
|
|
121
|
125
|
let res = null
|
|
122
|
126
|
if(this.pType && !ignore.includes(dispatchAction)) {
|
|
123
|
127
|
res = await this.$store.dispatch(
|