Commit 4f0f51a7 authored by Robert's avatar Robert

Fix js lint errors

parent 0230ecc8
Pipeline #1853 failed with stage
in 7 minutes and 20 seconds
......@@ -24,17 +24,17 @@
components: {
ContentPreview
},
data() {
data () {
return {
filters: {
type: '',
type: ''
},
associations: [],
nextPageURL: null,
nextPageURL: null
}
},
methods: {
load(url) {
load (url) {
fetch(url)
.then(res => res.json())
.then(paginator => {
......@@ -42,17 +42,17 @@
this.nextPageURL = paginator.next
})
},
loadMore() {
loadMore () {
this.load(this.nextPageURL)
},
updateFilters() {
updateFilters () {
let params = new URLSearchParams()
Object.entries(this.filters).forEach(([k, v]) => params.set(k, v))
this.associations = []
this.load('/stadt/api/content?' + params)
},
}
},
created() {
created () {
this.updateFilters()
}
}
......
......@@ -11,7 +11,7 @@ export default (el, opts) => {
return h(ContentList, {
props: {}
})
},
}
})
return {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment