big oauth improvements

This commit is contained in:
les
2020-01-21 01:24:10 +01:00
parent d1dbbebffb
commit e0b3dd8d4a
18 changed files with 289 additions and 172 deletions

View File

@@ -83,18 +83,18 @@ export default {
}
if (this.filters.places.length) {
params.push(`places=${this.filters.places}`)
params.push(`places=${this.filters.places.map(p => p.id)}`)
}
if (this.filters.tags.length) {
params.push(`tags=${this.filters.tags}`)
params.push(`tags=${this.filters.tags.map(t => t.id)}`)
}
return `<iframe style='border: 0px; width: 100%;' src="${this.settings.baseurl}/embed/list?${params.join('&')}"></iframe>`
},
link () {
const tags = this.filters.tags.join(',')
const places = this.filters.places.join(',')
const tags = this.filters.tags.map(t => t.id).join(',')
const places = this.filters.places.map(p => p.id).join(',')
let query = ''
if (tags || places) {
query = '?'