Skip to content
Snippets Groups Projects
Commit b6d678b4 authored by Angelina Filippova's avatar Angelina Filippova
Browse files

Add search engine to settings

parent d0c885c2
No related branches found
No related tags found
2 merge requests!125WIP: Release/2.0.3,!102Implement settings search
......@@ -280,8 +280,9 @@ export default {
})
},
querySearch(queryString, cb) {
const results = this.searchData
// call callback function to return suggestions
const results = Object.keys(this.searchData)
.filter(key => this.searchData[key].find(a => a.includes(queryString)))
.map(el => { return { value: el } })
cb(results)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment