title | issue |
---|---|
Use repository instead of non-existing service in global admin search |
NEXT-14845 |
- Removed key
entityService
from the following entities insideResources/app/administration/src/app/service/search-type.service.js
because the corresponding services do no longer exist:product
category
landing_page
customer
order
media
- Changed method
loadTypeSearchResults
inResources/app/administration/src/app/component/structure/sw-search-bar/index.js
to load search results withrepository.data
instead of API services by default. - Added method
loadTypeSearchResultsByService
inResources/app/administration/src/app/component/structure/sw-search-bar/index.js
. When using the keyentityService
insearch-type.service.js
, thesw-search-bar
component will try to find a matching service and use it'sgetList
function to load the search results. - Changed watcher for
$route
inResources/app/administration/src/app/component/structure/sw-search-bar/index.js
and prevent thesearchResult
to be updated whenisActive
is set.