mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
Merge pull request #2129 from mikiher/URI-encoding-2
Use encodeURIComponent for text inputs in Match.vue
This commit is contained in:
commit
872fba1103
@ -205,7 +205,7 @@ export default {
|
|||||||
processing: Boolean,
|
processing: Boolean,
|
||||||
libraryItem: {
|
libraryItem: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: () => {}
|
default: () => { }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@ -305,7 +305,7 @@ export default {
|
|||||||
const filterData = this.$store.state.libraries.filterData || {}
|
const filterData = this.$store.state.libraries.filterData || {}
|
||||||
const currentGenres = filterData.genres || []
|
const currentGenres = filterData.genres || []
|
||||||
const selectedMatchGenres = this.selectedMatch.genres || []
|
const selectedMatchGenres = this.selectedMatch.genres || []
|
||||||
return [...new Set([...currentGenres ,...selectedMatchGenres])]
|
return [...new Set([...currentGenres, ...selectedMatchGenres])]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -325,9 +325,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
getSearchQuery() {
|
getSearchQuery() {
|
||||||
if (this.isPodcast) return `term=${this.searchTitle}`
|
if (this.isPodcast) return `term=${encodeURIComponent(this.searchTitle)}`
|
||||||
var searchQuery = `provider=${this.provider}&fallbackTitleOnly=1&title=${this.searchTitle}`
|
var searchQuery = `provider=${this.provider}&fallbackTitleOnly=1&title=${encodeURIComponent(this.searchTitle)}`
|
||||||
if (this.searchAuthor) searchQuery += `&author=${this.searchAuthor}`
|
if (this.searchAuthor) searchQuery += `&author=${encodeURIComponent(this.searchAuthor)}`
|
||||||
return searchQuery
|
return searchQuery
|
||||||
},
|
},
|
||||||
submitSearch() {
|
submitSearch() {
|
||||||
@ -580,6 +580,7 @@ export default {
|
|||||||
.matchListWrapper {
|
.matchListWrapper {
|
||||||
height: calc(100% - 124px);
|
height: calc(100% - 124px);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
.matchListWrapper {
|
.matchListWrapper {
|
||||||
height: calc(100% - 80px);
|
height: calc(100% - 80px);
|
||||||
|
Loading…
Reference in New Issue
Block a user