Skip to content

Commit

Permalink
feat: treating data-search-by to handle search items with filter
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 committed May 27, 2019
1 parent 89b1bc8 commit 5fdfc64
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/render/handlers/queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ exports.run = (store, queue, currentObj) => {
el.dataset.ids = ids
}

// send request to Search API
promises.push(searchItems(store, el, body))
} else if (el.dataset.hasOwnProperty('searchBy') && body.name) {
// search items with filter
// set element data to handle ELS query
el.dataset[el.dataset.searchBy] = body.name
// send request to Search API
promises.push(searchItems(store, el, body))
} else {
Expand Down

0 comments on commit 5fdfc64

Please # to comment.