title | issue |
---|---|
Store current filtering into database |
NEXT-12997 |
- Added
FilterService
insrc/app/service/filter.service.js
to handle common logic to fetch and save filters - Added
createdComponent
method insrc/app/component/filter/sw-filter-panel/index.js
to initialize filter data - Added
storeKey
prop insrc/app/component/filter/sw-filter-panel/index.js
to initialize filter data by user config key - Added
activeFilterNumber
prop insrc/app/component/filter/sw-sidebar-filter-panel/index.js
to display notification badge - Added
filterCriteria
watchersrc/module/sw-customer/page/sw-customer-list/index.js
,src/module/sw-customer/page/sw-order-list/index.js
,src/module/sw-customer/page/sw-product-list/index.js
to watch for criteria changes and save it to database - Changed
getList
methodsrc/module/sw-customer/page/sw-customer-list/index.js
,src/module/sw-customer/page/sw-order-list/index.js
,src/module/sw-customer/page/sw-product-list/index.js
to handle loading filter from user configuration at initial state