Extended function names to clearify its action

This commit is contained in:
2019-06-10 00:51:01 +02:00
parent 36a7460a87
commit 75a8496791
2 changed files with 6 additions and 6 deletions

View File

@@ -44,7 +44,7 @@ import MoviesListItem from '@/components/MoviesListItem.vue'
import SeasonedButton from '@/components/ui/SeasonedButton.vue'
import LoadingPlaceholder from '@/components/ui/LoadingPlaceholder.vue'
import Loader from '@/components/ui/Loader.vue'
import { search, getListByName } from '@/api.js'
import { searchTmdb, getTmdbListByPath } from '@/api.js'
export default {
props: {
@@ -136,7 +136,7 @@ export default {
},
// TODO these should receive a path not get it from list instance
fetchListitems() {
getListByName(this.list.path, this.currentPage)
getTmdbListByPath(this.list.path, this.currentPage)
.then(this.parseResponse)
.catch(error => {
console.error(error)
@@ -144,7 +144,7 @@ export default {
})
},
fetchSearchItems() {
search(this.query, this.currentPage)
searchTmdb(this.query, this.currentPage)
.then(this.parseResponse)
},