getPerson endpoint and is called properly when movie.vue opens with type 'person'.
This commit is contained in:
@@ -123,7 +123,7 @@ import SidebarListElement from './ui/sidebarListElem'
|
||||
import store from '@/store'
|
||||
import LoadingPlaceholder from './ui/LoadingPlaceholder'
|
||||
|
||||
import { getMovie, getShow, request, getRequestStatus } from '@/api'
|
||||
import { getMovie, getPerson, getShow, request, getRequestStatus } from '@/api'
|
||||
|
||||
export default {
|
||||
props: ['id', 'type'],
|
||||
@@ -205,6 +205,12 @@ export default {
|
||||
.catch(error => {
|
||||
this.$router.push({ name: '404' });
|
||||
})
|
||||
} else if (this.type == 'person') {
|
||||
getPerson(this.id, true)
|
||||
.then(this.parseResponse)
|
||||
.catch(error => {
|
||||
this.$router.push({ name: '404' });
|
||||
})
|
||||
} else {
|
||||
getShow(this.id)
|
||||
.then(this.parseResponse)
|
||||
|
||||
Reference in New Issue
Block a user