forked from AkkomaGang/admin-fe
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) {
|
||||
const results = this.searchData.filter(searchObj => searchObj.search.find(el => el.includes(queryString.toLowerCase())))
|
||||
.map(searchObj => {
|
||||
return searchObj.groupKey === ':opts'
|
||||
? { value: `${searchObj.label} in Auto Linker`, group: searchObj.groupKey, key: searchObj.key }
|
||||
: { value: `${searchObj.label} in ${searchObj.groupLabel}`, group: searchObj.groupKey, key: searchObj.key }
|
||||
return { value: `${searchObj.label} in ${searchObj.groupLabel}`, group: searchObj.groupKey, key: searchObj.key }
|
||||
})
|
||||
cb(results)
|
||||
},
|
||||
|
|
|
@ -58,8 +58,6 @@ describe('Settings search', () => {
|
|||
wrapper.vm.handleSearchSelect({ group: ':media_proxy', key: ':ssl_options' })
|
||||
expect(store.state.settings.activeTab).toBe('media-proxy')
|
||||
|
||||
wrapper.vm.handleSearchSelect({ group: ':opts', key: ':opts' })
|
||||
expect(store.state.settings.activeTab).toBe('auto-linker')
|
||||
done()
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue