File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
app/code/Magento/Ui/view/base/web/js/grid Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,12 @@ define([
1313 return Component . extend ( {
1414 defaults : {
1515 listingNamespace : null ,
16+ bookmarkProvider : 'componentType = bookmark, ns = ${ $.listingNamespace }' ,
1617 filterProvider : 'componentType = filters, ns = ${ $.listingNamespace }' ,
1718 filterKey : 'filters' ,
1819 searchString : location . search ,
1920 modules : {
21+ bookmarks : '${ $.bookmarkProvider }' ,
2022 filterComponent : '${ $.filterProvider }'
2123 }
2224 } ,
@@ -49,6 +51,16 @@ define([
4951 return ;
5052 }
5153
54+ if ( ! _ . isUndefined ( this . bookmarks ( ) ) ) {
55+ if ( ! _ . size ( this . bookmarks ( ) . getViewData ( this . bookmarks ( ) . defaultIndex ) ) ) {
56+ setTimeout ( function ( ) {
57+ this . apply ( ) ;
58+ } . bind ( this ) , 500 ) ;
59+
60+ return ;
61+ }
62+ }
63+
5264 if ( Object . keys ( urlFilter ) . length ) {
5365 applied = this . filterComponent ( ) . get ( 'applied' ) ;
5466 filters = $ . extend ( { } , applied , urlFilter ) ;
You can’t perform that action at this time.
0 commit comments