Fix search for Auto Linker
This commit is contained in:
parent
4339a3a961
commit
e5f037dc46
2 changed files with 1 additions and 5 deletions
|
@ -222,9 +222,7 @@ export default {
|
||||||
querySearch(queryString, cb) {
|
querySearch(queryString, cb) {
|
||||||
const results = this.searchData.filter(searchObj => searchObj.search.find(el => el.includes(queryString.toLowerCase())))
|
const results = this.searchData.filter(searchObj => searchObj.search.find(el => el.includes(queryString.toLowerCase())))
|
||||||
.map(searchObj => {
|
.map(searchObj => {
|
||||||
return searchObj.groupKey === ':opts'
|
return { value: `${searchObj.label} in ${searchObj.groupLabel}`, group: searchObj.groupKey, key: searchObj.key }
|
||||||
? { value: `${searchObj.label} in Auto Linker`, group: searchObj.groupKey, key: searchObj.key }
|
|
||||||
: { value: `${searchObj.label} in ${searchObj.groupLabel}`, group: searchObj.groupKey, key: searchObj.key }
|
|
||||||
})
|
})
|
||||||
cb(results)
|
cb(results)
|
||||||
},
|
},
|
||||||
|
|
|
@ -58,8 +58,6 @@ describe('Settings search', () => {
|
||||||
wrapper.vm.handleSearchSelect({ group: ':media_proxy', key: ':ssl_options' })
|
wrapper.vm.handleSearchSelect({ group: ':media_proxy', key: ':ssl_options' })
|
||||||
expect(store.state.settings.activeTab).toBe('media-proxy')
|
expect(store.state.settings.activeTab).toBe('media-proxy')
|
||||||
|
|
||||||
wrapper.vm.handleSearchSelect({ group: ':opts', key: ':opts' })
|
|
||||||
expect(store.state.settings.activeTab).toBe('auto-linker')
|
|
||||||
done()
|
done()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue